1
1
Fork 0
mirror of https://tildegit.org/solderpunk/molly-brown synced 2024-04-28 19:05:03 +02:00

Chdir to / so that Molly doesn't interfere with unmounting.

This commit is contained in:
Solderpunk 2023-02-10 16:16:57 +01:00
parent b16fe0b8d4
commit 56d8dde14a

View File

@ -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 {