Commit Graph

229 Commits

Author SHA1 Message Date
sunmy2019 0ee0157b4b
docs: update docs for rustls (#337)
* Fix typos and update docs for rustls

* update description

* Remove placeholders in doc
2024-03-01 14:46:29 +08:00
Yujia Qiao 3ab540f19d
chore: update bug_report.md 2024-02-18 22:55:59 +08:00
sunmy2019 4ac53a5a39
feat: optional rustls support (#330)
* initial implementation of rustls support

* Refactor create_self_signed_cert.sh script

* resolve lint errors

* Fix handling of Option in tls.rs

* Update cargo-hack check command and feature dependencies

* fix missing point

* Add conditional check to skip test if client or server is not enabled

* clean up things

* fix for windows CI

* try fixing Windows CI

* Update src/main.rs

* Update src/transport/websocket.rs

* add missing messages

* split the tls mod

Co-authored-by: Ning Sun <n@sunng.info>
2024-02-18 17:17:17 +08:00
dependabot[bot] 7251759bda
chore(deps): bump h2 from 0.3.21 to 0.3.24 (#334)
Bumps [h2](https://github.com/hyperium/h2) from 0.3.21 to 0.3.24.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.21...v0.3.24)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-18 02:55:27 +00:00
dependabot[bot] ee7561c38d
chore(deps): bump snow from 0.9.3 to 0.9.6 (#333)
Bumps [snow](https://github.com/mcginty/snow) from 0.9.3 to 0.9.6.
- [Release notes](https://github.com/mcginty/snow/releases)
- [Commits](https://github.com/mcginty/snow/compare/v0.9.3...v0.9.6)

---
updated-dependencies:
- dependency-name: snow
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-18 10:50:47 +08:00
Vincent Young e4766e7d90
ci: support apple aarch64 (#294) 2024-02-18 02:25:45 +00:00
Ryan Dearing 63221028c9
fix: flush DataChannelCmd::StartForward* commands (#316)
Without flushing this may sit in a kernel buffer and we won't
know if the channel is still alive. This is particularly problematic
for the TCP connection pool.
2024-02-14 11:30:52 +08:00
sunmy2019 915bf4d21d
chore: update dependencies in Cargo.lock (#329) 2024-02-14 11:29:49 +08:00
Thomas Fournier 62114cde4c
fix: typo (#323) 2024-02-13 23:08:06 +08:00
zhfish 65b27f076c
chore: vendor openssl for musl (#301)
* Update Cargo.toml

add openssl's features for musl

* Update release.yml

* Update Cargo.toml

musl

* 更新 Cargo.toml

---------

Co-authored-by: Yujia Qiao <rapiz3142@gmail.com>
2023-11-05 13:39:16 +08:00
blueskea e08b2a9e92
docs: build with openssl (#303) 2023-11-05 13:38:39 +08:00
Yujia Qiao 84c04ab9df
fix: clippy (#302) 2023-11-03 11:37:43 +00:00
Yujia Qiao ebb764ae53
chore(bump): v0.5.0 2023-10-01 17:55:18 +08:00
Yujia Qiao 2ccb386cea
chore(test): update to be feature aware 2023-10-01 17:50:15 +08:00
Yujia Qiao 97541afaed
chore: fix build
- Drop tls for embedded devices in release
- Upgrade cross
- Specify rust 1.71
2023-10-01 17:13:17 +08:00
Yujia Qiao 3aa6557696
chore(bump): v0.4.9 2023-10-01 15:09:39 +08:00
I Putu Ariyasa 5946a18370
feat(transport): add websocket transport (#290) 2023-10-01 14:43:03 +08:00
Chieh Tai d2fe586f7b
chore: fix shield.io badge in README-zh.md (#272) 2023-07-07 18:57:55 +08:00
boenshao 7923dec9f5
docs: non root user with systemd (#269)
* doc: remove 'DynamicUser=yes', so the service can read config file with permission 600

* doc: add example for non-root systemd service

* fix(doc): should be 'app2.toml'
2023-07-07 18:57:26 +08:00
Yujia Qiao 9727e15377
chore: bump v0.4.8 2023-05-26 16:29:56 +08:00
dependabot[bot] 553ff381eb chore(deps): bump h2 from 0.3.15 to 0.3.18
Bumps [h2](https://github.com/hyperium/h2) from 0.3.15 to 0.3.18.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.15...v0.3.18)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-06 21:10:31 +08:00
reemaadeniyi d2960b5bde
chore: bump tracing-subscriber (#247)
Co-authored-by: evergreen-trading-systems <4870868+evergreen-trading-systems@users.noreply.github.com>
2023-05-06 12:57:13 +00:00
dependabot[bot] a1815900f9 chore(deps): bump openssl from 0.10.42 to 0.10.48
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.42 to 0.10.48.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.42...openssl-v0.10.48)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 12:00:54 +08:00
dependabot[bot] 540ebfc33b chore(deps): bump tokio from 1.21.2 to 1.24.2
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.21.2 to 1.24.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/commits)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 11:05:29 +08:00
Yujia Qiao 2acd62454d
fix: clippy 2023-03-27 10:48:12 +08:00
Yujia Qiao 9479b9a3a9 ci: upgrade to upx v4.0.2 2023-03-07 23:34:42 +08:00
dependabot[bot] 80a7266212 chore(deps): bump libgit2-sys from 0.13.4+1.4.2 to 0.13.5+1.4.5
Bumps [libgit2-sys](https://github.com/rust-lang/git2-rs) from 0.13.4+1.4.2 to 0.13.5+1.4.5.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.13.4...libgit2-sys-0.13.5)

---
updated-dependencies:
- dependency-name: libgit2-sys
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 23:22:35 +08:00
Yujia Qiao 32a2c36fde
chore: fix the shield.io badge 2023-03-07 23:07:46 +08:00
Yujia Qiao 69d8185ab5
chore: updat README.md 2023-03-07 21:51:19 +08:00
Yujia Qiao d079d66223 chore: update tls cert for test 2023-03-07 21:38:20 +08:00
Yujia Qiao ee5c7b4a77
chore: bump v0.4.7 2022-11-30 11:49:01 +08:00
Yujia Qiao 1b5c892e24
fix: enable TCP_NODELAY by default (#210) 2022-11-30 11:42:16 +08:00
Yujia Qiao 96479e498d
chore: bump v0.4.6 2022-11-29 17:59:58 +08:00
Yujia Qiao d216d6380f
feat: configurable retry interval (#208) 2022-11-29 09:41:23 +00:00
Orhun Parmaksız 87d06c91b9
chore: bump `vergen` crate to support `SOURCE_DATE_EPOCH` (#204)
This commits updates the version of `vergen` which is responsible
for generating the build info. The basis of this change is to support
`SOURCE_DATE_EPOCH` timestamps for reproducible builds.
See <https://reproducible-builds.org/docs/source-date-epoch/>

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-11-06 21:10:01 +08:00
Yujia Qiao 353d195529
chore: bump v0.4.5 2022-11-05 15:13:37 +08:00
Yujia Qiao e4c6c8abce
ci: upgrade upx to v4.0.0 (#203) 2022-11-04 14:49:31 +00:00
Yujia Qiao bf842b43d3
fix: update Dockerfile (#201) 2022-11-04 14:39:48 +00:00
Vincent Young 8fb9304549
chore: aarch64-apple-darwin CI 2022-10-29 20:44:42 +08:00
Yujia Qiao 5396d9e64d
chore: bump v0.4.4 2022-09-16 16:52:22 +08:00
Yujia Qiao 76f5c7227f
chore: update dependencies (#195) 2022-09-15 11:54:50 +00:00
Yujia Qiao ea01c42da7
refactor: ConfigChange (#191) 2022-09-15 11:40:15 +00:00
Peter Neumark 187f4f0335
feat: Allow use of system default TLS trusted root by omitting the trusted_root client config parameter. (#192) 2022-09-14 14:55:38 +00:00
Yujia Qiao 064bdcab8e
fix: clippy (#187) 2022-09-04 22:04:20 +08:00
inclyc 67182fbc10
docs: [example][systemd] use `DynamicUser=yes` (#186)
This patch fixes a warning generated by some new version of systemd. Use
"User=nobody" seems to be considered unsafe. So maybe we need to fix it
in our example files.

● ratholec@hitmc.service - Rathole Client Service
     Loaded: loaded (/etc/systemd/system/ratholec@.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-09-03 23:38:43 CST; 1h 27min ago
   Main PID: 507903 (rathole)
      Tasks: 14 (limit: 76731)
     Memory: 6.9M
        CPU: 39.908s
     CGroup: /system.slice/system-ratholec.slice/ratholec@hitmc.service
             └─507903 /usr/local/bin/rathole -c /etc/rathole/hitmc.toml

Sep 03 23:38:43 <hostname> systemd[1]: Started Rathole Client Service.
...
Sep 03 23:39:25 <hostname> systemd[1]: /etc/systemd/system/ratholec@.service:7: Special user nobody configured, this is not safe!
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969329
Link: https://github.com/trojan-gfw/trojan/issues/612
Link: https://www.vvave.net/archives/fix-the-systemd-error-special-user-nobody-configured-this-is-not-safe.html
2022-09-04 19:54:21 +08:00
fernvenue 881701d68f Update out-of-scope.md 2022-08-30 11:06:19 +08:00
Yujia Qiao 2e9e7374bc
chore: bump v0.4.3 2022-08-11 20:51:56 +08:00
Yujia Qiao 1f2fc5b28f
feat: cache dns result for one session (#166) 2022-06-11 11:39:11 +08:00
Yujia Qiao ee39a8e31e
chore: bump v0.4.2 2022-05-23 20:31:03 +08:00
Yujia Qiao 8c9527406e
chore: update snowstorm (#165) 2022-05-21 16:26:47 +00:00