mirror of
https://github.com/netchx/netch.git
synced 2026-05-05 22:35:48 +08:00
Fix TUNMode not bypass socks5 proxy remote address
This commit is contained in:
@@ -37,6 +37,8 @@ namespace Netch.Controllers
|
||||
|
||||
if (server is Socks5LocalServer socks5Bridge)
|
||||
_serverRemoteAddress = await DnsUtils.LookupAsync(socks5Bridge.RemoteHostname);
|
||||
else
|
||||
_serverRemoteAddress = await DnsUtils.LookupAsync(server.Hostname);
|
||||
|
||||
if (_serverRemoteAddress != null && IPAddress.IsLoopback(_serverRemoteAddress))
|
||||
_serverRemoteAddress = null;
|
||||
|
||||
Reference in New Issue
Block a user