noisyfox
4b49431800
Parse dest address before connect to SS server.
This gives us the possibility to chose SS server based on dest address.
8 years ago
Syrone Wong
8fcb66b6ff
Refine RNG usage
- Create instance once, bind it to ShadowsocksController
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
4bd9fd8a6b
Replace treewide polipo with privoxy
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Noisyfox
35fc73b58b
Add HTTP proxy support in forward proxy ( #745 )
* Add HTTP proxy support in forward proxy
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
* Typo
* Throw exception if forward proxy not supported.
8 years ago
Syrone Wong
99bdec334c
Add global hotkey support ( #724 )
Design:
Use the plain string for both config and hotkey parsing
and make use of KeyConverter, ModifierKeysConverter
to make it more rubust.
Find corresponding label (to display operation result) and callback (to do the real work) based on textbox name. In this case, they should be named as `<Feature-Name><Control-Name>`.
ShowLogsTextBox,
ShowLogsLabel,
ShowLogsCallback.
If this requirement doesn't meet, throw an exception at runtime.
Logic:
How to input keys:
1. put focus in the corresponding textbox
2. press the key combination you want to use
3. when you think it is ready, release all keys
4. the textbox shows your input
How to change keys:
1. put focus in the corresponding textbox
2. press BackSpace to clear content
3. re-input new one
How to deactivate:
1. clear content in the textbox
2. press OK button
Meaning of label color:
- Green: this combination is not occupied by other programs and register successfully
- Yellow: this combination is occupied by other programs and you have to change to another one
- Transparent without color: initial status
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
33b2ca8c8a
Refactor
- Only use one instance of LogForm
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
d3c6039c61
Refine Proxy config
- Move to seperate model
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
破娃酱
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
8 years ago
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>
8 years ago
noisyfox
a7b0ce5bcb
Use atomic long read.
Signed-off-by: noisyfox <timemanager.rick@gmail.com>
8 years ago
Noisyfox He
6a3e06cdb3
Merge branch 'master' of https://github.com/shadowsocks/shadowsocks-windows.git into dev_proxy
# Conflicts:
# shadowsocks-csharp/Controller/Service/TCPRelay.cs
# shadowsocks-csharp/Controller/ShadowsocksController.cs
# shadowsocks-csharp/View/MenuViewController.cs
8 years ago
Syrone Wong
d3acb3e681
Refine verbose logging handling
I can't wait until PR #604 get merged, do it manually.
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
fb3fcdb90d
Add verbose logging to log every connection
Note:
- Added a configuration entry, user should add this
by hand or reset from scratch.
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Syrone Wong
6a8a09983e
Merge fixes from @GangZhuo , close #478 ( #638 )
Squashed commit of the following:
commit e280c2385c
Merge: 579039f
87aa9eb
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Wed Mar 16 04:02:27 2016 -0400
Merge remote-tracking branch 'origin/master'
commit 579039fe40
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:45:23 2016 +0800
log unhandle exception
commit 8d863f1d5f
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:44:54 2016 +0800
fix Availability Statistics
commit b3ce1c698a
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:07:54 2016 +0800
tiny refactor
commit 0f7d39e27e
Merge: bd7078a
b01aced
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 20:02:58 2016 +0800
Merge remote-tracking branch 'origin/master'
commit bd7078aa4f
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 20:01:58 2016 +0800
tiny refactor
commit 49adb95b6e
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 03:44:26 2016 -0500
log more Ping information for debug
commit 2aa0620ddd
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 03:04:10 2016 -0500
reduce 3rd packages
[solve conflicts and squash to make history clean]
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
8 years ago
Allen Zhu
b0f71c43f5
Add traffic chart and traffic icon support ( #595 )
* Implement the line chart on Log View window for inbound/outbound traffic per second
* Implement dynamic tray icon to indicate Inbound and Outbound
* Refine linechart
* Bugfix for dynamic icon
* Refine chart presentation
* Change the data points' type for more accurate calculation
* Tweak inbound/outbound indicator image for tray icon
8 years ago
noisyfox
95d4e3a0c0
Add proxy support
9 years ago
noisyfox
2307c9515e
add proxy settings
9 years ago
Mygod
9c7b100f2b
Support one-time authentication in ss urls for sharing
This commit implements the new ss protocol proposed here:
https://github.com/shadowsocks/shadowsocks-org/issues/16
Also removes a TODO in Server.cs. You are welcome.
9 years ago
icylogic
a99fef37d3
track multiple servers at the same time
Correct AvailabilityStatistics's behavior under special strategies like "LoadBalance", which may switch the server several times in a short period.
9 years ago
icylogic
2086b5900d
Merge remote-tracking branch 'upstream/master' into feature/statistics_ui
# Conflicts:
# shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs
# shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs
# shadowsocks-csharp/View/StatisticsStrategyConfigurationForm.cs
9 years ago
Licshee
a8ffc60d31
updated StringEx to 0.2, in favor of s.NonWhiteSpaceLines()
9 years ago
Licshee
4a45d60c40
more reliable & maintainable extension methods
9 years ago
Licshee
0e2c28c9b0
.
9 years ago
Licshee
0c7597cdf4
moar
9 years ago
Licshee
859474b577
misc improve
9 years ago
icylogic
aef4b86c91
refactor AvailabilityStatistics to singleton
9 years ago
icylogic
7599704d1f
add speed to statistics
9 years ago
Gang Zhuo
fcec167c72
revert save bandwidth
Some bugs on Save Bandwidth. Maybe commit again after all is ok.
9 years ago
kimw
1ee07d196a
save bandwidth in config file per shadowsocks server
9 years ago
kimw
f9bd1c9150
featured: save bandwidth in config.json file
9 years ago
Gang Zhuo
12ba488c7b
atomic operations to increase traffic statistics
9 years ago
kimw
d2bb2c4a7d
fixed don't update abp rules while event user-rule file changed. in fact, the PAC will overwrite with gfwlist & use-rule but abp.
9 years ago
kimw
c2095b5ad7
migrated SimpleJson => Newtonesoft.Json, and of cause removed SimpleJson source files.
9 years ago
kimw
64390d45ac
GetTempPath() now supports: return a full path with filename combined which pointed to the temporary directory
9 years ago
kimw
2cce646700
featured show bandwidth in log form's title
9 years ago
kimw
0b16ef7445
Merge upstream
# Conflicts:
# README.md
# shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs
# shadowsocks-csharp/Controller/Service/PACServer.cs
# shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs
# shadowsocks-csharp/Data/cn.txt
# shadowsocks-csharp/Model/Configuration.cs
# shadowsocks-csharp/Model/LogViewerConfig.cs
# shadowsocks-csharp/View/LogForm.Designer.cs
# shadowsocks-csharp/View/LogForm.cs
# shadowsocks-csharp/View/MenuViewController.cs
9 years ago
icylogic
4684af053e
Merge branch 'master' into feature/statistics_ui
9 years ago
Gang Zhuo
a070c3c986
small fix
9 years ago
Gang Zhuo
b197af124b
fix bug: shadowsocks restart twice, when click Ok button on Edit Servers window
9 years ago
Gang Zhuo
00ccb52bef
Add an option for checking updates
9 years ago
icylogic
107bc99282
move loading and filtering jobs to statistics service
9 years ago
icylogic
e45dd8b695
core functions finished
9 years ago
icylogic
4e1b140dd9
Add Json.Net and separate out Statistics Configuration file
Import Json.Net since it's difficult for SimpleJson to deal with nested type.
9 years ago
icylogic
aa2334c9fd
Merge branch 'master' into feature/statistics_ui
# Conflicts:
# shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs
# shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs
# shadowsocks-csharp/View/LogForm.Designer.cs
# shadowsocks-csharp/View/MenuViewController.cs
9 years ago
kimw
3283c93857
fix: auto detected `user-rule.txt`'s change while no `gfwlist.txt` file, the application crashs.
9 years ago
kimw
b2c2d05c94
support auto check `user-rule.txt`'s change, and update the PAC file.
Note: This is a dirty hack.
9 years ago
kimw
758c497eba
same the source code format.
1/ removed dual empty line
2/ removed tailing spaces
3/ converted tabs into spaces
4/ added some TODO comments
9 years ago
clowwindy
71bd0d2b5a
improve user experience for some users
9 years ago
icylogic
6375a3d4a8
Merge branch 'master' into feature/statistics_ui
9 years ago
icylogic
bf1c79304e
Basic user controls
9 years ago