Commit Graph
232 Commits
Author SHA1 Message Date
Syrone Wong e6c0780435 memset zero before using
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-12-10 21:37:56 -06:00
Max Lv dafadaa621 Fix #990 2016-12-08 19:04:47 +08:00
Max Lv 25cc062e5d Use cork_container_of instead 2016-12-08 15:06:42 +08:00
Max Lv a63a33861f Add container_of 2016-12-08 14:48:40 +08:00
Syrone Wong baff29e970 Fix issues found by cppcheck
- GNU treats void* as char* when doing pointer arithmetic, so let's make it clear
- Fix memory leak, save copy from malloc() and pass the original pointer to free()
- minor type mismatches

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
2016-12-07 22:30:47 -06:00
Max Lv 8b358c59c7 Disable resolution retry after startup 2016-12-08 12:11:55 +08:00
Max Lv a987783b2a Fix a potential memory leak 2016-12-04 13:52:59 +08:00
Max Lv fd388e0502 Fix #972 2016-11-26 13:34:41 +08:00
Rayson zhu a8fdd77fbf add user config option 2016-11-25 02:10:17 -06:00
Max Lv 52e391962f Add option for firewall rules 2016-11-17 15:18:46 +08:00
Max Lv 79a98a66d8 Refine geteuid() 2016-11-16 18:19:51 +08:00
Max Lv 2b7c487b09 Refine #954 2016-11-16 14:38:23 +08:00
Max Lv 6d9331a56d Fix #954 2016-11-16 14:04:57 +08:00
Rayson Zhu 07d2b1a005 exit when running as a nonexistent user and warn when running as root 2016-11-14 21:14:06 +08:00
Max Lv 5cd294879b Add -6 option for #942 2016-11-12 11:01:05 +08:00
Max Lv f64cb0b0ca Refine the timer of traffic stat 2016-11-12 10:18:53 +08:00
Max Lv a0151422eb Fix the traffic counter in UDP mode 2016-11-12 09:58:06 +08:00
Max Lv aac4240e9f Fix #909 2016-10-29 13:40:40 +08:00
Max Lv 85a5c86637 Refine LRU cache by clearing old objects 2016-10-26 08:53:21 +08:00
Kim e0cfa6945a Friendlize init message while listen on an IPv6 address. (#901)
Before,

```bash
$ ss-local -s::1 -p8388 -b::1 -l1080 -k123456 -v
 ...
 2016-10-25 20:07:03 INFO: listening at ::1:1080
 ...
```

After,

```bash
$ ss-local -s::1 -p8388 -b::1 -l1080 -k123456 -v
 ...
 2016-10-25 20:07:49 INFO: listening at [::1]:1080
 ...
```
2016-10-26 08:14:01 +08:00
Kim 5524ec2201 Update local.c (#900)
Setup default cipher instead of null
2016-10-26 07:58:57 +08:00
Max Lv 7029cfca3a Refine event handling 2016-10-14 09:10:36 +08:00
Max Lv efafb59647 Fix #863 2016-10-02 13:37:45 +08:00
Max Lv 248fdcb610 Fix #841 2016-09-23 11:51:42 +08:00
Max Lv 2868e7e7b2 Fix TFO on Linux 2016-09-20 10:14:49 +08:00
Max Lv 3fbfb469d0 Revert "Refine #836"
This reverts commit 0949f9a73b.
2016-09-20 10:10:49 +08:00
Max Lv 0949f9a73b Refine #836 2016-09-20 09:14:59 +08:00
Max Lv 1bf7bd5f83 Fix #836 2016-09-20 08:58:49 +08:00
Max Lv 366fbace1f Fix #826 again 2016-09-12 12:28:15 +08:00
Max Lv 306f84b522 Fix #826 2016-09-12 12:17:52 +08:00
Max Lv 61cd731c4e Fix issue with authentication 2016-09-09 22:08:04 +08:00
Max Lv b28638ab80 Clean up 2016-09-09 13:17:58 +08:00
Max Lv 2ae356a1bb Fix error handling when parsing the header 2016-09-09 08:56:06 +08:00
Max Lv 42d9b68dcc Remove white list option in CLI 2016-09-08 13:06:13 +08:00
Max Lv 64870a276b Add HTTP/SNI parser (#809)
* WiP: add HTTP/SNI parser

* WiP: replace hostname with HTTP/SNI header

* WiP: add ACL

* Fix white list

* Replace free() with ss_free()

* Refine sockaddr handling

* Add HTTP/SNI support to redir
2016-09-08 10:10:23 +08:00
Max Lv 9a43cc6e6b Fix #781 2016-08-27 06:58:55 +08:00
Max Lv 5812840b24 Fix typo 2016-08-26 09:19:38 +08:00
Max Lv 46afbdcfd6 Refine incomplete header handling 2016-08-22 21:04:32 +08:00
Max Lv d31210c217 Fix VPN apis for Android 4.x 2016-08-13 17:13:32 +08:00
Max Lv 722d8d0c62 Fix build on Linux 2016-08-11 15:17:21 +08:00
Max Lv d319c0300c Add mptcp option, close #756 2016-08-04 13:30:39 +08:00
Max Lv 34b9036b5b Add MTU option 2016-08-03 11:53:28 +08:00
Max Lv 6cd81b3cfb Add tips for usage with kcptun 2016-08-03 09:53:12 +08:00
Max Lv 3f71b2a914 Fix #746 2016-07-29 16:57:36 +08:00
anonymous-contributor af69798355 New jconf parameters (#695)
* Add 'tunnel_address' support for json config parser

And allow ss-tunnel to use the newly introduced parser.

Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp>

* Add "mode" support for jconf

Now jconf supports "mode" setting, allowed values are "tcp_only",
"tcp_and_udp" and "udp_only".

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>

* Use jconf "mode" for server/local/tunnel/manager

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>

* Add per-project vimrc to gitignore

As the coding style differs from kernel and other projects, so such
project vimrc should be helpful.

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
2016-06-30 23:19:13 -05:00
Max Lv bf210be2b7 Refine #690 2016-06-28 15:35:16 +08:00
Max Lv 55dea8b973 Fix #690 2016-06-28 15:33:55 +08:00
cs17899219 d33b865ec7 Add a signal SIGUSR1 for safely stop the server (#677) 2016-06-14 21:29:06 -05:00
Max Lv 00209ab2ea Revert "Add APIs for non thread safe usage of shadowsocks-libev library"
This reverts commit 3e4c922363.
2016-06-14 09:15:58 +08:00
Max Lv 3e4c922363 Add APIs for non thread safe usage of shadowsocks-libev library 2016-06-13 17:47:11 +08:00