Add implementation for stop command

This adds implementation for stopping the tunnel
via the `Stop` command.
This commit is contained in:
Jett Chen 2024-02-11 03:17:14 +08:00
parent 29d2bfae3f
commit c4c342dc8b
5 changed files with 81 additions and 38 deletions

View file

@ -17,6 +17,9 @@ daemon:
start:
@$(cargo_norm) start
stop:
@$(cargo_norm) stop
test-dns:
@sudo route delete 8.8.8.8
@sudo route add 8.8.8.8 -interface $(tun)