mirror of
https://github.com/netchx/netch.git
synced 2026-05-07 22:44:03 +08:00
Remove IServerController.Server
This commit is contained in:
@@ -188,7 +188,7 @@ namespace Netch.Controllers
|
||||
|
||||
var offset = portType == PortType.UDP ? UdpNameListOffset : 0;
|
||||
|
||||
if (controller.Server is Socks5 socks5)
|
||||
if (MainController.Server is Socks5 socks5)
|
||||
{
|
||||
aio_dial((int) NameList.TYPE_TCPTYPE + offset, "Socks5");
|
||||
aio_dial((int) NameList.TYPE_TCPHOST + offset, $"{socks5.AutoResolveHostname()}:{socks5.Port}");
|
||||
@@ -196,7 +196,7 @@ namespace Netch.Controllers
|
||||
aio_dial((int) NameList.TYPE_TCPPASS + offset, socks5.Password ?? string.Empty);
|
||||
aio_dial((int) NameList.TYPE_TCPMETH + offset, string.Empty);
|
||||
}
|
||||
else if (controller.Server is Shadowsocks shadowsocks)
|
||||
else if (MainController.Server is Shadowsocks shadowsocks)
|
||||
{
|
||||
aio_dial((int) NameList.TYPE_TCPTYPE + offset, "Shadowsocks");
|
||||
aio_dial((int) NameList.TYPE_TCPHOST + offset, $"{shadowsocks.AutoResolveHostname()}:{shadowsocks.Port}");
|
||||
|
||||
Reference in New Issue
Block a user