From 9d3510e8c64e703348c7b6df12a2ebcc29210576 Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 23 Apr 2023 13:31:40 +0400 Subject: [PATCH] domain for wireguard config --- app/bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 0bbc9b1..7a8a25e 100644 --- a/app/bot.php +++ b/app/bot.php @@ -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, ]