Skip to content

Commit

Permalink
refactor: Update Router.php to use dynamic port from config
Browse files Browse the repository at this point in the history
  • Loading branch information
bangyadiii committed Jun 22, 2024
1 parent dc38291 commit 3ccd264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function getClient(string $host, string $username, string $passwor
'host' => $host,
'user' => $username,
'pass' => $password,
'port' => \config('routeros-api.port', true) ? \config('routeros-api.ssl_port') : \config('routeros-api.port'),
'port' => (int) config('routeros-api.port', 8729),
'attempts' => 1,
'timeout' => 10,
'socket_timeout' => 20,
Expand Down

0 comments on commit 3ccd264

Please sign in to comment.