add makefile
This commit is contained in:
parent
d68f36455f
commit
5297f61f9f
1 changed files with 18 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
tun_num := $(shell ifconfig | awk -F 'utun|[: ]' '/utun[0-9]/ {print $$2}' | tail -n 1)
|
||||
|
||||
check:
|
||||
@cargo check
|
||||
|
||||
build:
|
||||
@cargo run build
|
||||
|
||||
daemon:
|
||||
@RUST_BACKTRACE=1 RUST_LOG=debug cargo run daemon
|
||||
|
||||
start:
|
||||
@RUST_BACKTRACE=1 RUST_LOG=debug cargo run start
|
||||
|
||||
test-dns:
|
||||
@sudo route delete 8.8.8.8
|
||||
@sudo route add 8.8.8.8 -interface utun$(tun_num)
|
||||
@dig @8.8.8.8 hackclub.com
|
||||
Loading…
Add table
Add a link
Reference in a new issue