Parse dest address before connect to SS server.

This gives us the possibility to chose SS server based on dest address.
This commit is contained in:
noisyfox
2016-11-14 09:58:48 +11:00
parent cfc6e674da
commit 4b49431800
7 changed files with 132 additions and 66 deletions
@@ -127,7 +127,7 @@ namespace Shadowsocks.Controller.Strategy
public string Name => I18N.GetString("Choose by statistics");
public Server GetAServer(IStrategyCallerType type, IPEndPoint localIPEndPoint)
public Server GetAServer(IStrategyCallerType type, IPEndPoint localIPEndPoint, EndPoint destEndPoint)
{
if (_currentServer == null)
{