Datong Sun
6a39e9e9d0
perf(phantun): avoid heap allocation with udp_recv_from_pktinfo()
2025-08-23 11:53:41 +08:00
WGH
19c9f2d9f2
fix(phantun): use the same source IP for UDP packet replies ( #178 )
...
This fixes an issue when Phantun may choose a source IP different from
the destination IP in the incoming packet.
Closes #177
2025-08-23 01:04:03 +08:00
Datong Sun
66de44e32f
chore(cargo): bump to Rust edition 2024
( #223 )
...
Docker image build / build (push) Waiting to run
Rust / build (push) Waiting to run
* chore(cargo): bump to Rust edition 2024 and move shared dependency into
workspace `Cargo.toml`
* style(phantun): use Rust 2024 `&&` combination for `if let`
2025-08-23 00:20:07 +08:00
Datong Sun
6a424fd43c
chore(deps): bump dependencies to latest and fix build failure with
...
`neli`
2025-08-22 23:06:50 +08:00
Datong Sun
62f0278c1a
fix(phantun): fix tokio-tun
incompatiable API change
Docker image build / build (push) Has been cancelled
Rust / build (push) Has been cancelled
2025-01-02 21:52:56 +08:00
Datong Sun
6955a1eb4c
chore(deps): bump dependencies to latest
2024-11-20 23:06:36 +08:00
Datong Sun
78dd7c13b1
style(phantun): fix Clippy warnings
2023-09-19 00:25:52 +08:00
Datong Sun
7bcfada87b
refactor(phantun): work with clap
4.0.
2022-10-25 23:21:58 +08:00
Datong Sun
f496a7919b
feat(phantun) new option --handshake-packet
that allows additional
...
packet to be sent to the other end after TCP connection establishment
2022-05-13 23:14:05 +08:00
Datong Sun
87a42a1e23
fix(phantun) do not use the deprecated fec0::/10
block for default ULA
...
address
2022-04-17 00:55:16 +08:00
Datong Sun
838cfa6738
style(phantun) slight fix on client usage
2022-04-16 03:53:27 -07:00
Datong Sun
85555f2a34
feat(*) IPv6 support
2022-04-16 18:43:55 +08:00
Datong Sun
74183071f1
style(phantun) remove unnecessary tokio::select
call
2022-04-15 23:01:44 +08:00
Datong Sun
95dfd8ab54
fix(fake-tcp) fix an issue where RST
generated is not following
...
the proper RFC requirement.
Send ACK every 128MB in lieu of data packets.
2022-04-10 16:33:53 +08:00
Datong Sun
d97a27778b
style(phantun) refactor out common functions and constants
2022-04-09 21:32:07 +08:00
Datong Sun
35f7b35ff5
perf(phantun) spawn multiple threads for UDP send/receive
2022-04-09 21:32:07 +08:00
Datong Sun
9c85b43e94
style(phantun) use the clap::Command
struct, removed the deprecated clap::App
usage
2022-04-09 11:00:20 +08:00
dependabot[bot]
2ef0a056be
chore(deps): update clap requirement from 2.34 to 3.0
...
Updates the requirements on [clap](https://github.com/clap-rs/clap ) to permit the latest version.
- [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/compare/clap_generate-v3.0.0-rc.0...clap_complete-v3.0.0 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 23:45:13 +08:00
Datong Sun
cb9dd3e931
fix(client) disable AAAA resolve, since tokio-tun does not yet have IPv6
...
support. See: https://github.com/yaa110/tokio-tun/pull/8
2022-01-03 23:37:31 +08:00
Datong Sun
7db7164193
chore(*) use tokio-tun
v0.5 instead of forked version. Bumped
...
`fake-tcp` to `v0.2.3`
2021-12-07 17:07:54 +08:00
Datong Sun
583cdbe300
perf(fake-tcp) reduce the number of clone()
calls in hot path
2021-11-19 12:35:21 +08:00
Datong Sun
91988520e5
feat(*) add DNS name support for --remote
argument in both Client and
...
Server
2021-11-19 12:30:47 +08:00
Datong Sun
042f5af49f
feat(phantun) add support for connecting to/from IPv6 based UDP endpoint
2021-10-31 00:09:02 +08:00
Datong Sun
6285efd0d7
feat(phantun) make Tun interface name and address configurable. Improved
...
documentations of Clap CLI help
Closes #8
2021-09-29 14:27:00 +08:00
Datong Sun
5a6ebf52ea
fix(phantun) better UDP error handling
...
When UDP send fails, print a proper error message and close the
connection, instead of `panic`ing.
2021-09-28 00:53:52 +08:00
Datong Sun
8371256f0b
perf(fake-tcp) use cached tuples per dispatcher task to avoid RwLock
...
contentions. Use multi queue Tun. Upgraded tokio to 1.12.0.
This makes the entire Phantun forward process completely lock contention free
2021-09-23 12:59:49 +08:00
Datong Sun
e6bc75951b
style(phantun) fixed name and author info
2021-09-19 01:43:59 -07:00
Datong Sun
4a9e41b0b7
chore(*) refactor Phantun and fake-tcp to their own crates
2021-09-19 00:36:40 -07:00