Skip to content
Snippets Groups Projects
Commit 886db6d9 authored by Pratik Lagaskar's avatar Pratik Lagaskar
Browse files

Update app/vpnhole/handler.go, app/vpnhole/main.go

parent 4a85087c
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ func Handler(rw dns.ResponseWriter, req *dns.Msg) {
return
}
c := alter.ParseFlags()
c := vpnhole.ParseFlags()
resp, _, err := client.Exchange(req, c.Upstream)
if err != nil {
log.Fatalln(fmt.Errorf("failed to exchange: %w", err))
......
......@@ -13,14 +13,14 @@ import (
func init() {
// start the cmdline parser
alter.ParseFlags()
vpnhole.ParseFlags()
}
func main() {
// call ParseFlags() to get the config struct with the values
c := alter.ParseFlags()
c := vpnhole.ParseFlags()
fmt.Println(c)
// start the vpnhole
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment