This reverts commit be3cc3f3a6
.
tags/3.4.2
@@ -7,8 +7,8 @@ using System.Timers; | |||||
using Shadowsocks.Controller.Strategy; | using Shadowsocks.Controller.Strategy; | ||||
using Shadowsocks.Encryption; | using Shadowsocks.Encryption; | ||||
using Shadowsocks.ForwardProxy; | |||||
using Shadowsocks.Model; | using Shadowsocks.Model; | ||||
using Shadowsocks.Proxy; | |||||
using Shadowsocks.Util.Sockets; | using Shadowsocks.Util.Sockets; | ||||
namespace Shadowsocks.Controller | namespace Shadowsocks.Controller | ||||
@@ -97,9 +97,9 @@ namespace Shadowsocks.Controller | |||||
{ | { | ||||
class AsyncSession | class AsyncSession | ||||
{ | { | ||||
public IForwardProxy Remote { get; } | |||||
public IProxy Remote { get; } | |||||
public AsyncSession(IForwardProxy remote) | |||||
public AsyncSession(IProxy remote) | |||||
{ | { | ||||
Remote = remote; | Remote = remote; | ||||
} | } | ||||
@@ -109,7 +109,7 @@ namespace Shadowsocks.Controller | |||||
{ | { | ||||
public T State { get; set; } | public T State { get; set; } | ||||
public AsyncSession(IForwardProxy remote, T state) : base(remote) | |||||
public AsyncSession(IProxy remote, T state) : base(remote) | |||||
{ | { | ||||
State = state; | State = state; | ||||
} | } | ||||
@@ -521,7 +521,7 @@ namespace Shadowsocks.Controller | |||||
CreateRemote(); | CreateRemote(); | ||||
// Setting up proxy | // Setting up proxy | ||||
IForwardProxy remote; | |||||
IProxy remote; | |||||
EndPoint proxyEP; | EndPoint proxyEP; | ||||
if (_config.proxy.useProxy) | if (_config.proxy.useProxy) | ||||
{ | { | ||||
@@ -4,9 +4,9 @@ using System.Net.Sockets; | |||||
using System.Threading; | using System.Threading; | ||||
using Shadowsocks.Util.Sockets; | using Shadowsocks.Util.Sockets; | ||||
namespace Shadowsocks.ForwardProxy | |||||
namespace Shadowsocks.Proxy | |||||
{ | { | ||||
public class DirectConnect : IForwardProxy | |||||
public class DirectConnect : IProxy | |||||
{ | { | ||||
private class FakeAsyncResult : IAsyncResult | private class FakeAsyncResult : IAsyncResult | ||||
{ | { |
@@ -7,9 +7,9 @@ using System.Threading; | |||||
using Shadowsocks.Controller; | using Shadowsocks.Controller; | ||||
using Shadowsocks.Util.Sockets; | using Shadowsocks.Util.Sockets; | ||||
namespace Shadowsocks.ForwardProxy | |||||
namespace Shadowsocks.Proxy | |||||
{ | { | ||||
public class HttpProxy : IForwardProxy | |||||
public class HttpProxy : IProxy | |||||
{ | { | ||||
private class FakeAsyncResult : IAsyncResult | private class FakeAsyncResult : IAsyncResult | ||||
{ | { |
@@ -2,10 +2,10 @@ | |||||
using System.Net; | using System.Net; | ||||
using System.Net.Sockets; | using System.Net.Sockets; | ||||
namespace Shadowsocks.ForwardProxy | |||||
namespace Shadowsocks.Proxy | |||||
{ | { | ||||
public interface IForwardProxy | |||||
public interface IProxy | |||||
{ | { | ||||
EndPoint LocalEndPoint { get; } | EndPoint LocalEndPoint { get; } | ||||
@@ -6,9 +6,9 @@ using System.Threading; | |||||
using Shadowsocks.Controller; | using Shadowsocks.Controller; | ||||
using Shadowsocks.Util.Sockets; | using Shadowsocks.Util.Sockets; | ||||
namespace Shadowsocks.ForwardProxy | |||||
namespace Shadowsocks.Proxy | |||||
{ | { | ||||
public class Socks5Proxy : IForwardProxy | |||||
public class Socks5Proxy : IProxy | |||||
{ | { | ||||
private class FakeAsyncResult : IAsyncResult | private class FakeAsyncResult : IAsyncResult | ||||
{ | { |
@@ -148,9 +148,9 @@ | |||||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | <DesignTimeSharedInput>True</DesignTimeSharedInput> | ||||
<DependentUpon>Settings.settings</DependentUpon> | <DependentUpon>Settings.settings</DependentUpon> | ||||
</Compile> | </Compile> | ||||
<Compile Include="ForwardProxy\DirectConnect.cs" /> | |||||
<Compile Include="ForwardProxy\HttpProxy.cs" /> | |||||
<Compile Include="ForwardProxy\IForwardProxy.cs" /> | |||||
<Compile Include="Proxy\DirectConnect.cs" /> | |||||
<Compile Include="Proxy\HttpProxy.cs" /> | |||||
<Compile Include="Proxy\IProxy.cs" /> | |||||
<Compile Include="Controller\Service\AvailabilityStatistics.cs" /> | <Compile Include="Controller\Service\AvailabilityStatistics.cs" /> | ||||
<Compile Include="Controller\Strategy\HighAvailabilityStrategy.cs" /> | <Compile Include="Controller\Strategy\HighAvailabilityStrategy.cs" /> | ||||
<Compile Include="Controller\Strategy\StatisticsStrategy.cs" /> | <Compile Include="Controller\Strategy\StatisticsStrategy.cs" /> | ||||
@@ -185,7 +185,7 @@ | |||||
<Compile Include="Controller\Strategy\BalancingStrategy.cs" /> | <Compile Include="Controller\Strategy\BalancingStrategy.cs" /> | ||||
<Compile Include="Controller\Strategy\StrategyManager.cs" /> | <Compile Include="Controller\Strategy\StrategyManager.cs" /> | ||||
<Compile Include="Controller\Strategy\IStrategy.cs" /> | <Compile Include="Controller\Strategy\IStrategy.cs" /> | ||||
<Compile Include="ForwardProxy\Socks5Proxy.cs" /> | |||||
<Compile Include="Proxy\Socks5Proxy.cs" /> | |||||
<Compile Include="Settings.cs" /> | <Compile Include="Settings.cs" /> | ||||
<Compile Include="StringEx.cs" /> | <Compile Include="StringEx.cs" /> | ||||
<Compile Include="Controller\System\Hotkeys\Hotkeys.cs" /> | <Compile Include="Controller\System\Hotkeys\Hotkeys.cs" /> | ||||