| @@ 21-28 (lines=8) @@ | ||
| 18 | * |
|
| 19 | * @return \OpenVPN\Interfaces\ConfigInterface |
|
| 20 | */ |
|
| 21 | public function client(array $params = []): ConfigInterface |
|
| 22 | { |
|
| 23 | $configs = config('openvpn-client'); |
|
| 24 | $configs = array_merge($configs, $params); |
|
| 25 | $object = new Config($configs); |
|
| 26 | ||
| 27 | return $object->client(); |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * Get server configuration of OpenVPN |
|
| @@ 37-43 (lines=7) @@ | ||
| 34 | * |
|
| 35 | * @return \OpenVPN\Interfaces\ConfigInterface |
|
| 36 | */ |
|
| 37 | public function server(array $params = []): ConfigInterface |
|
| 38 | { |
|
| 39 | $configs = config('openvpn-server'); |
|
| 40 | $configs = array_merge($configs, $params); |
|
| 41 | ||
| 42 | return new Config($configs); |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Get instance of config generator |
|