Fix virtual adapter mode NAT type test result "Wrong STUN server"

This commit is contained in:
ChsBuffer
2021-09-11 01:19:01 +08:00
parent 3e377f2e9d
commit 89f9dccb87

View File

@@ -34,6 +34,10 @@ namespace Netch.Controllers
if (await DnsUtils.LookupAsync(server.Hostname) == null)
throw new MessageException(i18N.Translate("Lookup Server hostname failed"));
// TODO Disable NAT Type Test setting
// cache STUN Server ip to prevent "Wrong STUN Server"
DnsUtils.LookupAsync(Global.Settings.STUN_Server).Forget();
Server = server;
Mode = mode;