Syrone Wong
c1ec851627
Refine ProxyForm
...
- Save empty config if null ref
- only save config when clicking OK button
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-15 10:09:04 +08:00
Syrone Wong
d3c6039c61
Refine Proxy config
...
- Move to seperate model
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-14 23:19:39 +08:00
破娃酱
ea9c7b093a
Refine Encryption module ( #717 )
...
- use EncryptorInfo struct instead of Dictionary<string, int[]>>
2016-09-13 22:16:37 -05:00
破娃酱
a9cf3992e1
Refine traditional Chinese translation ( #716 )
2016-09-13 21:27:22 -05:00
noisyfox
05063f074a
Fix an issue that the socket may not be released.
...
- New wrapper to handle tcp socket connection.
- Fix some memory leak.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-09-14 04:23:18 +10:00
Syrone Wong
ab464ca8b1
change controller status if needed
...
- Change controller based on power mode
- Stop before exiting
Based on GangZhuo's code
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-12 16:23:03 +08:00
破娃酱
2a6da8af3f
smooth traffic chart lines ( #709 )
2016-09-11 06:32:37 +08:00
Syrone Wong
4b6d641d17
Update CHANGES and bump version
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-09 17:48:22 +08:00
破娃酱
59c315d465
new traffic chart style ( #704 )
...
* new traffic chart style
- remove invoke
- force to set AxisY.Maximum not zero
- format LogForm.cs
* avoid data race
2016-09-08 15:24:46 +08:00
Syrone Wong
f8c9bdda12
Drop redundant type casting
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-08 08:20:12 +08:00
破娃酱
707442163d
New traffic icon style ( #703 )
2016-09-07 20:00:31 +08:00
Syrone Wong
bb7171674b
Refine traditional Chinese translation again
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-07 10:08:56 +08:00
Syrone Wong
3b1ac7500f
typo
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-07 09:54:35 +08:00
Syrone Wong
2bebe515fa
Refine traditional Chinese translation
...
- Respect shadowsocks-android translation by @LNDDYL
- pretend to be native speaker
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-07 09:49:56 +08:00
Syrone Wong
4367a56f46
Drop .NET Framework lower than 4.0 explicitly
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-06 20:20:19 +08:00
破娃酱
d958c5c393
fix bandwidthScale of the LogForm ( #701 )
...
- Revert bandwidthScale when throughput gets smaller
- Don't save coordinates when LogForm is minimized. Otherwise, we get negative values
- activate ConfigForm & ProxyForm & LogForm
2016-09-06 18:46:35 +08:00
破娃酱
d73b77ff88
fix ss URL bug with no padding base64 ( #700 )
2016-09-06 14:31:22 +08:00
破娃酱
da234ef857
add Traditional Chinese ( #698 )
...
* add Traditional Chinese
* fix a resource type
* fix the Traditional Chinese name of "address", "port", "screen", "Open Location"
2016-09-06 11:39:05 +08:00
Syrone Wong
514bb02098
Fix config selection
...
User wants to use that server after selected it in the ConfigForm. If user deletes
the server in use, we can't find its index, then the previous logic will revert to
index 0, which is not expected behaviour.
Since we handled 'ServersListBox.SelectedIndex' in various event handlers, we can
trust it all the time.
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-09-04 08:04:56 +08:00
noisyfox
e364457b1b
Fix a memory leak.
...
Caused by not call SocketAsyncEventArgs.Dispose().
2016-09-03 15:17:16 +08:00
noisyfox
be85ab55a7
Fix #561
2016-09-03 08:58:13 +08:00
noisyfox
e6e9fc8588
Refactor to make OTA code more independent and clear.
...
and misc changes
2016-09-03 08:57:33 +08:00
noisyfox
4c5376ce0b
Remove unnecessary call to InitKey.
2016-09-03 08:57:31 +08:00
noisyfox
0266ad9d59
Remove redundant lock.
...
Lock is evil.
This will actually affect the accuracy of GetDelta because
inboundDelta and outboundDelta may be calculated based on
the data collected at different time (eg. UpdateOutbound
get called before Interlocked.Read(ref _outbound)).
But that's not a problem. We can tolerate this little
inaccuracy. Besides, the _inbound, _outbound, _lastInbound
and _lastOutbound will be totally good because we use Interlocked.
2016-09-03 08:57:30 +08:00
Syrone Wong
cbc94e0eb7
Update privoxy to 3.0.26
...
Close #686
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-29 21:30:38 +08:00
Syrone Wong
f70b177e56
Misc
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-29 21:30:05 +08:00
noisyfox
5b2327776a
Fix a null ref exception.
2016-08-27 03:35:33 +10:00
noisyfox
ed54b249db
Close services while closing listener.
...
Now it will close all existing TCP relay connections
while reloading the listener.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-26 21:08:04 +10:00
noisyfox
65d72fdfed
New approach to record and calculate inbound/outbound speed.
...
Use lock to sync between threads.This should fix issue #679
and other same issue.
Fix a bug in UpdateSpeed() that only save the first xxxSpeedRecord.
2016-08-26 13:49:44 +10:00
noisyfox
a7b0ce5bcb
Use atomic long read.
...
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-26 12:23:21 +10:00
noisyfox
37d894594e
Use immutable remote reference during async process.
...
To prevent "The IAsyncResult object was not returned from
the corresponding asynchronous method on this class." exception.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-22 11:49:53 +10:00
noisyfox
28fe2fdc54
Only output some debug exceptions in debug mode.
...
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-22 10:53:18 +10:00
noisyfox
f676d2185e
Use Socket.ConnectAsync instead of socket.BeginConnect.
...
Socket.ConnectAsync will create socket and handle the address family
itself. This solves some compatibility issues on win7.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-20 11:36:27 +10:00
noisyfox
b335e6c8f5
Revert changes in UDPRelay.cs
...
UDP SendTo doesn't support DnsEndPoint.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-20 11:33:59 +10:00
noisyfox
80fc8b4ccf
Fix an exception caused by process.MainModule.
...
Try to access a dead process's MainModule will cause
"A 32 bit processes cannot access modules of
a 64 bit process." exception on win7 x64.
Simply ignore it.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-20 10:57:13 +10:00
noisyfox
70624e35d9
Fix compatibility issue on vista and win7.
...
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-19 13:56:55 +10:00
noisyfox
2ed8ab50cd
Only parse socks5 header once per connection.
...
To avoid unreadable and uncessary output
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-19 13:36:49 +10:00
Noisyfox
a1eef6eac1
Multiple instances of ss_privoxy ( #665 )
...
* Use job object to manage polipo service's external processes.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
* Only kill those ss_privoxy.exe created by this ss instance.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
* Update README
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-18 19:31:01 +08:00
Syrone Wong
e30487207b
Add error message
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-17 17:02:30 +08:00
Syrone Wong
8637277c27
Cleanup
...
- drop unused using directive
- add a comment
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-17 15:58:00 +08:00
Syrone Wong
2b4b6cba07
Minor ConfigForm changes
...
- add event handler for KeyDown
- drop unused code, we don't support
table and rc4 now
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-17 15:56:00 +08:00
Syrone Wong
acf7963de7
OTA is stable now
...
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-17 15:52:42 +08:00
Syrone Wong
ddb7374432
Refine Windows registry again( #512 )
...
Used a method added in .NET 4, user may not have
this version installed, reverting to an older
method seems to be a better solution.
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-17 11:13:35 +08:00
Syrone Wong
3417a984fa
Change requirements
...
- Running on Windows Vista or above
Signed-off-by: Syrone Wong <wong.syrone@gmail.com >
2016-08-17 11:13:25 +08:00
noisyfox
6cb58b229d
Fix a null ref exception.
...
At that time the remote even doesn't exist.
Also this debug output doesn't make any sense because when handling
udp request, this tcp connection won't have any meaningful data.
So I simply removed these two lines.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-16 20:52:53 +10:00
noisyfox
53ce1948e4
Unified ipv4, ipv6 and domain connections.
...
-Use dual-mode socket & DnsEndPoint to handle all domain name connection.
-Move all socket creation into one single function.
So that we could treat domain name just like ipv4 & ipv6 address.
This also solves the async domain solving problem because the os will
hanlde it for us.
2016-08-16 20:40:09 +10:00
noisyfox
ad15c7e64b
Improve host address handling using DnsEndPoint
...
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-16 17:28:26 +10:00
noisyfox
aef88543d2
Fix typo
...
Update translate
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-16 15:47:55 +10:00
noisyfox
22740c5102
Let Socks5 proxy handle server host's domain name.
...
Don't resolve it locally because socks5 support domain name connection.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-16 02:10:38 +10:00
noisyfox
a02cd11dc9
Let proxy module handle name resolving itself.
...
Fix wrong output in proxyConnectTimer_Elapsed.
Signed-off-by: noisyfox <timemanager.rick@gmail.com >
2016-08-16 01:11:33 +10:00