mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-05-14 11:16:04 +02:00
Chdir to / so that Molly doesn't interfere with unmounting.
This commit is contained in:
parent
b16fe0b8d4
commit
56d8dde14a
6
main.go
6
main.go
|
@ -92,6 +92,12 @@ func main() {
|
|||
ClientAuth: tls.RequestClientCert,
|
||||
}
|
||||
|
||||
// Chdir to / so we don't block any mountpoints
|
||||
err = os.Chdir("/")
|
||||
if err != nil {
|
||||
errorLog.Println("Could not change working directory to /: " + err.Error())
|
||||
}
|
||||
|
||||
// Create TLS listener
|
||||
listener, err := tls.Listen("tcp", ":"+strconv.Itoa(config.Port), tlscfg)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue