Commit Graph

197 Commits

Author SHA1 Message Date
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
Yujia Qiao 15a4183ba7
chore: update dependencies (#163) 2022-05-20 15:40:57 +00:00
Yujia Qiao f8c415c558
chore: add `feature_request.md` issue template 2022-05-20 23:26:29 +08:00
Victor C 8665e6a2cf
fix: make watcher's path absolute for notify's MacOS fsevent implementation (#155) 2022-04-15 16:47:55 +08:00
Yujia Qiao 8a24723895
chore: bump v0.4.1 2022-03-28 19:42:49 +08:00
Yujia Qiao feb8c2dbfa
fix: restart when heartbeat times out (#147) 2022-03-28 16:42:09 +08:00
Takayuki Maeda 636bdbd604
revert(ci): disable incremental compilation (#140) (#144)
This reverts commit f9ee8ec2f9.
2022-03-25 11:57:12 +08:00
Takayuki Maeda f9ee8ec2f9
ci: disable incremental compilation (#140) 2022-03-15 13:53:19 +00:00
Yujia Qiao 952c4134c3
chore: bump v0.4.0 2022-03-09 12:34:45 +08:00
Yujia Qiao 479260720e
chore: bump dependencies 2022-03-09 12:34:45 +08:00
Yujia Qiao d2c55cc99c
chore: make clippy happy 2022-03-09 12:34:45 +08:00
Yujia Qiao d842fbb2da
docs: update README.md 2022-03-09 12:22:01 +08:00
Yujia Qiao f5ec8422e1
ci: run checks for commits on branch dev 2022-03-08 23:38:18 +08:00
Yujia Qiao 2746a0ea88
feat: application layer heartbeat (#136)
* feat: application layer heartbeat

* feat: make heartbeat configurable

* fix: update keepalive params

* docs: update about heartbeat
2022-03-08 23:27:18 +08:00
Yujia Qiao 1ef7747019
feat: support SOCKS5 and HTTP proxy (#135)
* chore: add comments

* feat: support socks5/http proxy

* fix: clippy

* fix: always validate tcp config

* chore: rename directories
2022-03-08 23:25:51 +08:00
Yujia Qiao bec7533222 ci: fix missing artifacts 2022-03-08 22:53:22 +08:00
Yujia Qiao 702f6ac10a
ci: fix duplicated checks 2022-03-08 22:33:51 +08:00
Yujia Qiao 5f1479b226
ci: run checks on all branches 2022-03-08 22:24:08 +08:00
Yujia Qiao 4682581038
chore: enable strip in cargo 2022-02-25 12:35:04 +08:00
Yujia Qiao 860e3ce2ed
chore: bump v0.3.10 2022-02-21 14:37:16 +08:00
mgt a492ea4f14
fix(config_watcher): allow backupcopy for vim (#122)
by watching the parent dir of config file, we can receive events regardless of the inode of the config file.
2022-02-21 14:31:21 +08:00
Yujia Qiao 55aedfc29a
fix: use unbounded_channel 2022-02-20 15:25:40 +08:00
Yujia Qiao fcfb0bc701
test: adapt to openssl 3 (#126) 2022-02-08 01:35:19 +00:00
Yujia Qiao 3d245c5e5f
chore: refactor and clean up 2022-02-07 21:21:22 +08:00
Yujia Qiao 5f301ed8e3
feat: mask out token in logging (#129) 2022-02-07 12:01:12 +00:00
Yujia Qiao 90aa0a4e44
fix: use unbounded channels in `config_watcher` (#127) 2022-02-07 10:12:13 +00:00
Yujia Qiao 4c08779ff6
chore: refactor 2022-02-07 17:59:26 +08:00
Yujia Qiao 2b85161186
fix: set `codegen-units` to 1 (#124) 2022-02-06 14:51:18 +00:00
Yujia Qiao 9d143dab6a
fix: reimplement `retry_notify` with signals (#123) 2022-02-06 14:26:21 +00:00
Yujia Qiao dc5ba42e0a
ci: run tests in debug profile 2022-02-06 22:09:37 +08:00
Yujia Qiao 9eee4fb05c
ci: format 2022-02-06 22:09:13 +08:00
Yujia Qiao 81d85f6d7e
test: fix unstable tests 2022-02-02 19:34:34 +08:00
Yujia Qiao 0278c529dd
fix: respect shutdown signal when retry (#121)
* fix: respect shutdown signal when retry

* test: add tests for retry_notify

* chore: drop backoff/tokio
2022-02-02 06:27:43 +00:00