Open flyzxt opened 1 year ago
Hi @flyzxt!
For the destination to change, you must call the destination()
setter with the desired address on the tun_config
:
tun_config
.address((10, 0, 1, 1))
.destination((10, 0, 1, 255))
.netmask((255, 255, 255, 0))
.up();
Be wary of this on Windows, however, as it override the default gateway.
os: macos m1
when use default code to create tun device, system route table like blow:
change address in code, and re run
I think corret route table is 10.0.1.255, but it's not change.