Commit Graph
1657 Commits
Author SHA1 Message Date
dependabot[bot] 5dacd16040 Bump clap from 2.33.3 to 2.34.0
Bumps [clap](https://github.com/clap-rs/clap) from 2.33.3 to 2.34.0.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/commits)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 21:29:22 +08:00
John 9342fccd0e fixed pr #714 2021-12-06 11:27:41 +08:00
John 43d2597a68 remove duplicate codes in udp association 2021-12-06 11:00:11 +08:00
John 8ad1811df9 remove duplicate code in local http connector 2021-12-06 10:55:52 +08:00
John 1c14504fd5 optimize dns code 2021-12-06 10:54:44 +08:00
John 24152304f4 optimize logging code 2021-12-06 00:27:24 +08:00
John 401f558459 remove duplicate code for local http 2021-12-05 22:52:04 +08:00
John 2d530f3a2a remove duplicate code in client_cache for local dns 2021-12-05 22:51:31 +08:00
zonyitoo 9b33ffca5d upgrade etherparse 0.10 2021-11-30 20:20:35 +08:00
zonyitoo d5c54af96b release v1.12.4 v1.12.4 2021-11-28 15:01:54 +08:00
ty d90fb8a906 "log" and "runtime" specific options configurable in file (#702) 2021-11-28 14:49:53 +08:00
zonyitoo 18d042fa57 default config relative path only required if $PWD doesnt exist 2021-11-27 21:24:41 +08:00
zonyitoo 5292a25db3 refine documents 2021-11-27 19:21:41 +08:00
zonyitoo 2767f4ecdd shadowsocks-service v1.12.3 should deps on shadowsocks v1.12.2 2021-11-27 17:51:39 +08:00
zonyitoo 9a5b90db50 fixed ssservice in Makefile 2021-11-27 17:45:33 +08:00
zonyitoo 89d9e66338 ssservice support symlinked by sslocal, ssserver, ssmanager 2021-11-27 17:36:16 +08:00
zonyitoo 77b2489a80 add missing logs from binaries 2021-11-27 17:36:16 +08:00
zonyitoo 8e84b51b6d default configuration path includes $PWD/config.json
ref #700
2021-11-27 17:36:16 +08:00
zonyitoo 02b9ad74ca make clippy happy 2021-11-27 17:36:16 +08:00
zonyitoo e0bdcd76da logging default configuration file path
ref #668, #700
2021-11-27 17:36:16 +08:00
zonyitoo c0c41a0670 add missing AcceptOpts on Windows TCP redir 2021-11-27 17:36:16 +08:00
zonyitoo 486e1d7279 Local, Server & Manager unified binary ssservice
- fixes #698
- Refactored shadowsocks-rust crate structure. Common code are put into
a separated library
2021-11-27 17:36:16 +08:00
zonyitoo 17d8475ceb support ipv6_only socket option (IPV6_V6ONLY)
This is useful for creating multiple local / server instances listening
on both `::` and `0.0.0.0` with the same port.`

Listener sockets (both TCP and UDP) in redir local is now
IPV6_V6ONLY=1 because transparent proxies couldn't handle V4 and V6
packets simultaneously properly.
2021-11-27 15:10:07 +08:00
zonyitoo 48e822d104 fixed build warning on Windows 2021-11-27 00:22:23 +08:00
zonyitoo 3e04feda52 fixed UDP listener binds to dual-stack addresses (::)
ref #694
2021-11-27 00:20:35 +08:00
zonyitoo f28bee55ae trigger ci rebuild 2021-11-26 21:52:03 +08:00
zonyitoo 1eff9b1883 remove redundant clone and Into for RemoteDnsAddress v1.12.3 2021-11-26 00:43:05 +08:00
zonyitoo 1dc0c2a363 make clippy happy 2021-11-26 00:12:13 +08:00
zonyitoo 7aec233271 command line --password also support ${VAR_NAME} syntax
- use the original text instead of empty string if ${VAR_NAME} 's
VAR_NAME doesn't exist

ref #419
2021-11-25 23:54:23 +08:00
zonyitoo 3ee373cb2f revert rust-toolchain to 2021-09-10
regression: https://github.com/rust-lang/rust/issues/89626
2021-11-25 22:20:41 +08:00
zonyitoo 11262f5f99 refactored command line options getter with clap::value_t! 2021-11-25 20:21:50 +08:00
zonyitoo 0b5933b4b6 ssmanager won't use read_server_password 2021-11-25 17:33:14 +08:00
zonyitoo 74e8a4f8f5 Reading password from environment variable or TTY
- servers creating from command line options would use TTY,
SS_SERVER_PASSWORD and SS_SERVER_${SERVER_ADDR}_PASSWORD environment
variables
- servers in configuration file "password" would allow ${VAR_NAME} to
read from environment variable VAR_NAME

fixes #419
2021-11-25 17:19:16 +08:00
zonyitoo aaac00f208 SS_LOG_VERBOSE_LEVEL and SS_LOG_WITHOUT_TIME environment variable
ref #691
2021-11-25 16:15:49 +08:00
zonyitoo fa3a2a83d2 default configuration file (config.json) for Windows, Linux, macOS
- $XDG_CONFIG_PATH/shadowsocks-rust/config.json
- $HOME/.config/shadowsocks-rust/config.json
- {FOLDERID_RoamingAppData}\shadowsocks\shadowsocks-rust\config\config.json
- $HOME/Library/Application Support/org.shadowsocks.shadowsocks-rust/config.json

fixes #688
2021-11-25 15:14:07 +08:00
zonyitoo 05d1b0715e updated rust-toolchain and dependencies 2021-11-23 17:01:51 +08:00
dependabot[bot] e0481c44f5 Bump hyper from 0.14.14 to 0.14.15
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.14 to 0.14.15.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.14...v0.14.15)

---
updated-dependencies:
- dependency-name: hyper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 00:05:18 +08:00
dependabot[bot] 0f5290a05b Bump serde_json from 1.0.70 to 1.0.71
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.70...v1.0.71)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 00:05:03 +08:00
zonyitoo 52f88b2d84 release v1.12.2 v1.12.2 2021-11-16 15:55:24 +08:00
zonyitoo 182f48530d bump shadowsocks to v1.12.1 2021-11-16 00:11:44 +08:00
zonyitoo 2ab714db31 sendfd only works on UNIX platforms 2021-11-16 00:08:26 +08:00
zonyitoo e56c08267d remove direct dependency of mio 2021-11-16 00:04:18 +08:00
dependabot[bot] 0000be096d Bump serde_json from 1.0.69 to 1.0.70
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.69...v1.0.70)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 22:20:00 +08:00
zonyitoo 7b1b67fe44 local-dns remote-dns-addr will have default port 53
fixes #683
2021-11-15 12:27:47 +08:00
zonyitoo 54e834a116 release v1.12.1 v1.12.1 2021-11-11 17:07:00 +08:00
zonyitoo dbb1dadf37 release v1.12.1-alpha.1 v1.12.1-alpha.1 2021-11-09 23:37:08 +08:00
zonyitoo e8a8f65a9b install upx when building mips targets, fixes #674 2021-11-09 23:26:56 +08:00
zonyitoo b7387858cc ACL regex auto-converting support rules like ^\.*\.eu$ 2021-11-09 12:37:34 +08:00
zonyitoo 7b30cddcb8 bump shadowsocks-service to v1.12.1 2021-11-09 10:35:15 +08:00
zonyitoo 0135ca6151 skip ACL rules with non-ASCII characters
ref #669
2021-11-09 10:35:15 +08:00