fix endpoint wireguard

This commit is contained in:
mercury
2023-02-03 22:03:37 +04:00
parent 4478c578b4
commit bca9d7111c
+1 -1
View File
@@ -1787,7 +1787,7 @@ DNS-over-HTTPS with IP:
'peers' => [
[
'PublicKey' => $public_server_key,
'Endpoint' => "{$_SERVER['HTTP_HOST']}:" . getenv('PORT_WG'),
'Endpoint' => file_get_contents('https://ipinfo.io/ip') . ":" . getenv('PORT_WG'),
'AllowedIPs' => $ips_user ?: "0.0.0.0/0",
'PersistentKeepalive' => 20,
]