mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-06-27 16:48:01 +02:00
add command arg
This commit is contained in:
parent
41473a555a
commit
b08368ad10
2 changed files with 7 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/main
|
7
main.go
7
main.go
|
@ -343,7 +343,12 @@ func startWireguard(setting *DeviceSetting) (*netstack.Net, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
conf, err := readConfig("/home/octeep/.config/wireproxy")
|
if len(os.Args) != 2 {
|
||||||
|
fmt.Println("Usage: wireproxy [config file path]")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
conf, err := readConfig(os.Args[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue