mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
resolve host for every new connection in static tunnels
This commit is contained in:
parent
e068771c9b
commit
6a66de7ef9
2 changed files with 56 additions and 37 deletions
|
@ -45,11 +45,9 @@ func main() {
|
|||
exePath := executablePath()
|
||||
unveilOrPanic("/", "r")
|
||||
unveilOrPanic(exePath, "x")
|
||||
if err := protect.UnveilBlock(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// only allow standard stdio operation, file reading, networking, and exec
|
||||
// also remove unveil permission to lock unveil
|
||||
pledgeOrPanic("stdio rpath inet dns proc exec")
|
||||
|
||||
isDaemonProcess := len(os.Args) > 1 && os.Args[1] == daemonProcess
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue