fix readme and perms

This commit is contained in:
Your Name 2020-09-10 11:16:24 -04:00
parent 80d9f229c4
commit 52bc66c555
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
A simple service to proxy unix sockets to http. Useful for containerizing web services that don't natively support listening on unix sockets.
Usage of unixproxy:
```Usage of unixproxy:
-log
Log requests to stdout
-strip string
@ -11,3 +11,4 @@ Usage of unixproxy:
Unix socket to listen on
-url string
URL to proxy to
```

View File

@ -66,7 +66,9 @@ func main() {
srv.Handler = http.StripPrefix(c.Strip, frontendProxy)
}
}
unixListener, err := net.Listen("unix", c.MySock)
os.Chmod(c.MySock, 0777)
if err != nil {
log.Fatal(err)