Commit Graph
1376 Commits
Author SHA1 Message Date
Roger Shimizu f59cd07992 fix typo in src/manager.c 2017-01-09 22:45:50 +08:00
Max Lv 94a341fe2c Refine SIGCHLD handling 2017-01-09 17:56:56 +08:00
Max Lv f67518a9d4 Fix #1050 2017-01-09 17:15:40 +08:00
Max Lv 77da84fb21 Validate hostname in redir mode #1047 2017-01-09 08:43:22 +08:00
Max Lv a3bf80cf11 Fix a typo v2.6.1 2017-01-08 16:33:51 +08:00
Max Lv 48b6a59df4 Bump version 2017-01-08 16:31:54 +08:00
Max Lv 97c58ad44d Refine signal handling 2017-01-08 16:22:49 +08:00
Max Lv 61b82c45c5 Add SIP003 plugin support (#1044)
https://github.com/shadowsocks/shadowsocks-org/issues/28
2017-01-08 01:10:00 -06:00
Syrone Wong 637f207934 mbedtls: Make rc4, camellia, blowfish cipher checks optional
Per Felix Fietkau's request in https://github.com/lede-project/source/pull/657

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2017-01-06 22:26:14 -06:00
Roger Shimizu 1ce4bf903d Sync debian/ folder with v2.6.0+ds-2 2017-01-06 05:49:37 -06:00
Roger Shimizu 69f1c46778 debian/copyright: Update copyright year 2017-01-06 05:49:26 -06:00
Roger Shimizu fa81c6ec79 debian/copyright: Add new entry
Add new entry of copyright on src/base64.{c,h}
2017-01-06 05:49:26 -06:00
Roger Shimizu b85ae24d7c debian/shadowsocks-libev.postinst: Limit capabilities setting
setcap setting is only for configure/reconfigure case in postinst script
2017-01-06 05:49:19 -06:00
GhostFlying c807d2d6c4 fix bug when port reuse fail (#1037) 2017-01-05 23:26:47 -06:00
Max Lv 3b4af24fec Fix indent 2017-01-06 12:22:15 +08:00
Mygod 29eacdcb40 Refine gfwlist regexp (#1036)
* Refine gfwlist regexp

See debuggex for pcre at: https://www.debuggex.com/r/gVJ0mwnpdoKDoeGQ

* Refine domain part regexp

See debuggex at: https://www.debuggex.com/r/5uTCAlXjbvHr_Koy
2017-01-05 20:58:12 -06:00
wtlusvm 3565ffacc3 Update README.md (#1034) 2017-01-05 07:12:09 -06:00
GhostFlying 9753cc54dc Check port before add port via ss-manager (#1035)
* add simple port check functions

* release sock lock when manager exit

* simplfy the sock lock

* release sock lock when receive the stat report

* simplfy dns query

* add udp port check

* enable port check function

* clean code and logs
2017-01-05 06:06:05 -06:00
Max Lv 53d2a75892 Remove deprecated PolarSSL sections from README.md 2017-01-02 20:24:02 +08:00
Zhengjun Zhang 363bf5735e Add capabilities for Debian Linux, so you can run ss-* as non-root. 2016-12-31 20:23:05 -06:00
Max Lv bf385587be Fix #1027 2017-01-01 10:19:13 +08:00
Max Lv 2f3eb4c11e Fix building warnings on Cygwin 2016-12-30 19:50:22 +08:00
Max Lv 96a16f2612 Remove static_assert for clang 2016-12-30 16:14:56 +08:00
Mygod 5f33b73d4e Add support for comments in the middle of the line in ACL files 2016-12-30 01:49:47 -06:00
Max Lv 79c722cded Add static assert 2016-12-30 15:40:58 +08:00
Max Lv 6ecbf8e6b9 Avoid ms_struct on Cygwin and MingW 2016-12-30 14:39:33 +08:00
Mygod 422b9d3df2 Refine ACL logic in local.c 2016-12-29 06:23:02 -06:00
Max Lv b9e19bfdb7 Remove the hardcode compiler-time endian convert 2016-12-29 16:30:32 +08:00
Max Lv 15dfb6f10d Refine the alignment again 2016-12-29 16:00:50 +08:00
Max Lv 60cdaf98df Use internal BIG_ENDIAN check 2016-12-29 14:32:47 +08:00
Max Lv b47d28920f Refine packed alignment 2016-12-29 14:06:23 +08:00
Max Lv a4f4afdf98 Fix a typo 2016-12-29 12:43:51 +08:00
Max Lv 47b3406739 Disable fast_open when setsockopt failed 2016-12-29 11:40:07 +08:00
Max Lv 3383501e7b Disable fast_open when it's not supported 2016-12-29 11:26:32 +08:00
Max Lv 8557555c7c Refine the defination of global variables 2016-12-28 21:07:24 +08:00
Max Lv 2694e86bd9 Fix #1016 2016-12-28 18:02:08 +08:00
Max Lv 80565eece1 Refine the log of obfuscating 2016-12-28 15:01:17 +08:00
VampireSH 39fbb819b3 update the README.md 2016-12-27 05:00:29 -06:00
Max Lv 8cb4f81eba Add HTTP/TLS obfuscating. [SIP001] (#1009)
Add experimental HTTP/TLS obfuscating as an **optional extension** of shadowsocks protocol.

More discussions can be found here: https://github.com/shadowsocks/shadowsocks-org/issues/26

As this feature is still a SIP (Shadowsocks Improvement Proposal), it's very unstable and experimental. So, 

1. Don't enable it unless you know what it is.
2. Be very careful when using it in production environment.
v2.6.0
2016-12-27 02:53:25 -06:00
Max Lv 9b2b394249 Update ACL 2016-12-27 16:02:07 +08:00
Max Lv 32f52dabf9 Fix #1008 2016-12-27 15:02:13 +08:00
Max Lv 8e52029d31 Fix #1006 2016-12-23 18:17:25 +08:00
Liu DongMiao d2b7e6702d Support mac os x's launch_activate_socket (#1003)
In Mac OS X 10.10, `launch_activate_socket` was introduced.
So whenever the port is requested, the `launchd` can launch the program
dynamically. A possible plist may like this:

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>com.github.shadowsocks</string>
        <key>ProgramArguments</key>
        <array>
                <string>/path/to/ss-local</string>
                <string>-s</string>
                <string>server host</string>
                <string>-p</string>
                <string>server port</string>
                <!-- the -l and -b can be ommited, as launchd takes over it -->
                <string>-k</string>
                <string>password</string>
                <string>-m</string>
                <string>method</string>
                <string>-t</string>
                <string>timeout</string>
                <string>-A</string>
        </array>
        <key>Sockets</key>
        <dict>
                <!-- the name is hard coded in ss-local -->
                <key>Listeners</key>
                <dict>
                        <key>SockNodeName</key>
                        <string>127.0.0.1</string>
                        <key>SockServiceName</key>
                        <string>socks</string>
                </dict>
        </dict>
</dict>
</plist>
```

The magic is `launchd` will listen to the `SockServiceName`, when the port
is requested, the `ss-local` will be launched.
2016-12-22 01:06:22 -06:00
Max Lv 134a35fd6c Refine addr resolving 2016-12-20 22:17:04 +08:00
Max Lv 6be61ccaea Refine regex 2016-12-17 07:27:32 +08:00
Max Lv 16765857af Refine ACLs 2016-12-16 20:16:20 +08:00
Max Lv a4a69a3746 Refine ACL 2016-12-16 20:09:55 +08:00
Max Lv a02a67dcf0 Update GFWList 2016-12-16 15:20:33 +08:00
Max Lv 63f50dcbe7 Refine ACL 2016-12-15 20:54:43 +08:00
Mygod 82943612fd Update gfwlist 2016-12-15 12:21:12 +08:00