|
@@ 56-61 (lines=6) @@
|
| 53 |
|
public function command($command) |
| 54 |
|
{ |
| 55 |
|
if ('connections' === $this->callType) { |
| 56 |
|
if ('tcp://127.42.101.100:11940' === $this->socketAddress) { |
| 57 |
|
// send back the returnData as an array |
| 58 |
|
return explode("\n", file_get_contents(dirname(__DIR__).'/data/socket/openvpn_23_status_one_client.txt')); |
| 59 |
|
} else { |
| 60 |
|
return explode("\n", file_get_contents(dirname(__DIR__).'/data/socket/openvpn_23_status_no_clients.txt')); |
| 61 |
|
} |
| 62 |
|
} elseif ('kill' === $this->callType) { |
| 63 |
|
if ('tcp://127.42.101.100:11940' === $this->socketAddress) { |
| 64 |
|
return explode("\n", file_get_contents(dirname(__DIR__).'/data/socket/openvpn_23_kill_success.txt')); |
|
@@ 62-68 (lines=7) @@
|
| 59 |
|
} else { |
| 60 |
|
return explode("\n", file_get_contents(dirname(__DIR__).'/data/socket/openvpn_23_status_no_clients.txt')); |
| 61 |
|
} |
| 62 |
|
} elseif ('kill' === $this->callType) { |
| 63 |
|
if ('tcp://127.42.101.100:11940' === $this->socketAddress) { |
| 64 |
|
return explode("\n", file_get_contents(dirname(__DIR__).'/data/socket/openvpn_23_kill_success.txt')); |
| 65 |
|
} else { |
| 66 |
|
return explode("\n", file_get_contents(dirname(__DIR__).'/data/socket/openvpn_23_kill_error.txt')); |
| 67 |
|
} |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function close() |