Completed
Push — master ( 15dcc7...3460bc )
by Mr
06:52 queued 13s
created
configs/routeros-api.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
      */
16 16
 
17 17
     'host' => env('ROUTEROS_HOST', '192.168.88.1'), // Address of Mikrotik RouterOS
18
-    'user' => env('ROUTEROS_USER', 'admin'),        // Username
19
-    'pass' => env('ROUTEROS_PASS'),                 // Password
20
-    'port' => (int) env('ROUTEROS_PORT', 8728),     // RouterOS API port number for access (if not set use default or default with SSL if SSL enabled)
18
+    'user' => env('ROUTEROS_USER', 'admin'), // Username
19
+    'pass' => env('ROUTEROS_PASS'), // Password
20
+    'port' => (int) env('ROUTEROS_PORT', 8728), // RouterOS API port number for access (if not set use default or default with SSL if SSL enabled)
21 21
 
22 22
     /*
23 23
      |--------------------------------------------------------------------------
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
      |
31 31
      */
32 32
 
33
-    'attempts'        => (int) env('ROUTEROS_ATTEMPTS', 10),                                      // Count of attempts to establish TCP session
34
-    'delay'           => (int) env('ROUTEROS_DELAY', 1),                                          // Delay between attempts in seconds
35
-    'timeout'         => (int) env('ROUTEROS_TIMEOUT', 10),                                       // Max timeout for instantiating connection with RouterOS
36
-    'socket_timeout'  => (int) env('ROUTEROS_SOCKET_TIMEOUT', env('ROUTEROS_TIMEOUT', 30)),       // Max timeout for read from RouterOS
37
-    'socket_blocking' => (bool) env('ROUTEROS_SOCKET_BLOCKING', true),                            // Set blocking mode on a socket stream
33
+    'attempts'        => (int) env('ROUTEROS_ATTEMPTS', 10), // Count of attempts to establish TCP session
34
+    'delay'           => (int) env('ROUTEROS_DELAY', 1), // Delay between attempts in seconds
35
+    'timeout'         => (int) env('ROUTEROS_TIMEOUT', 10), // Max timeout for instantiating connection with RouterOS
36
+    'socket_timeout'  => (int) env('ROUTEROS_SOCKET_TIMEOUT', env('ROUTEROS_TIMEOUT', 30)), // Max timeout for read from RouterOS
37
+    'socket_blocking' => (bool) env('ROUTEROS_SOCKET_BLOCKING', true), // Set blocking mode on a socket stream
38 38
 
39 39
     // @see https://www.php.net/manual/en/context.socket.php
40 40
     'socket_options'  => [
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
 
66 66
     // @see https://www.php.net/manual/en/context.ssl.php
67 67
     'ssl_options' => [
68
-        'ciphers'           => env('ROUTEROS_SSL_CIPHERS', 'ADH:ALL'),              // ADH:ALL, ADH:ALL@SECLEVEL=0, ADH:ALL@SECLEVEL=1 ... ADH:ALL@SECLEVEL=5
69
-        'verify_peer'       => (bool) env('ROUTEROS_SSL_VERIFY_PEER', false),       // Require verification of SSL certificate used.
70
-        'verify_peer_name'  => (bool) env('ROUTEROS_SSL_VERIFY_PEER_NAME', false),  // Require verification of peer name.
68
+        'ciphers'           => env('ROUTEROS_SSL_CIPHERS', 'ADH:ALL'), // ADH:ALL, ADH:ALL@SECLEVEL=0, ADH:ALL@SECLEVEL=1 ... ADH:ALL@SECLEVEL=5
69
+        'verify_peer'       => (bool) env('ROUTEROS_SSL_VERIFY_PEER', false), // Require verification of SSL certificate used.
70
+        'verify_peer_name'  => (bool) env('ROUTEROS_SSL_VERIFY_PEER_NAME', false), // Require verification of peer name.
71 71
         'allow_self_signed' => (bool) env('ROUTEROS_SSL_ALLOW_SELF_SIGNED', false), // Allow self-signed certificates. Requires verify_peer=true.
72 72
     ],
73 73
 
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
      |
82 82
      */
83 83
 
84
-    'ssh_port'        => (int) env('ROUTEROS_SSH_PORT', 22),                             // Number of SSH port
84
+    'ssh_port'        => (int) env('ROUTEROS_SSH_PORT', 22), // Number of SSH port
85 85
     'ssh_timeout'     => (int) env('ROUTEROS_SSH_TIMEOUT', env('ROUTEROS_TIMEOUT', 30)), // Max timeout for read from RouterOS via SSH proto (for "/export" command)
86
-    'ssh_private_key' => env('ROUTEROS_SSH_PRIVKEY', '~/.ssh/id_rsa.pub'),               // Full path to required private key
86
+    'ssh_private_key' => env('ROUTEROS_SSH_PRIVKEY', '~/.ssh/id_rsa.pub'), // Full path to required private key
87 87
 
88 88
     /*
89 89
      |--------------------------------------------------------------------------
Please login to merge, or discard this patch.