Comment os.ID

This commit is contained in:
Sarah Jamie Lewis 2023-08-16 10:33:12 -07:00
parent 61ced82cb4
commit c9ea1e4464
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ func (tp *torProvider) Listen(identity connectivity.PrivateKey, port int) (conne
return nil, err
}
// We need to set os.ID here, otherwise os.Close() may not shut down the onion service properly...
os.ID = onion
os.CloseLocalListenerOnClose = true