/** * set and replace server remote location */ public static function replaceServerParam($server, $config) { $config = \Lib\Openvpn\Util\ConfigHelper::replaceConfig('remote', $server . '.' . ServerStatus::VPN_DOMAIN, $config); return $config; }
public function replaceConfig($config) { $config = \Lib\Openvpn\Util\ConfigHelper::replaceKey('cert', $this->getCrtKey(), $config); $config = \Lib\Openvpn\Util\ConfigHelper::replaceKey('key', $this->getPrvKey(), $config); return $config; }