mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-07-01 00:03:35 +05:00
Change socket permissions
This commit is contained in:
parent
4847a2d05a
commit
331b9e8787
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -47,6 +47,8 @@ func main() {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
syscall.Umask(0007)
|
||||||
|
|
||||||
listener, err := net.Listen(u.Scheme, u.Host+u.Path)
|
listener, err := net.Listen(u.Scheme, u.Host+u.Path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue