domain for wireguard config

This commit is contained in:
mercury
2023-04-23 13:31:40 +04:00
parent 6230b3876b
commit 9d3510e8c6
+1 -1
View File
@@ -2185,7 +2185,7 @@ DNS-over-HTTPS with IP:
'peers' => [
[
'PublicKey' => $public_server_key,
'Endpoint' => $this->ip . ":" . getenv('WGPORT'),
'Endpoint' => ($this->getPacConf()['domain'] ?: $this->ip) . ":" . getenv('WGPORT'),
'AllowedIPs' => $ips_user ?: "0.0.0.0/0",
'PersistentKeepalive' => 20,
]