mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-22 12:58:37 +00:00
cmd/derper: close setec after use (#14929)
Since dynamic reload of setec is not supported in derper at this time, close the server after the secret is loaded. Updates tailscale/corp#25756 Signed-off-by: Mike O'Driscoll <mikeo@tailscale.com>
This commit is contained in:
parent
1bf4c6481a
commit
9a9ce12a3e
@ -224,6 +224,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
meshKey = st.Secret(meshKeySecret).GetString()
|
meshKey = st.Secret(meshKeySecret).GetString()
|
||||||
log.Println("Got mesh key from setec store")
|
log.Println("Got mesh key from setec store")
|
||||||
|
st.Close()
|
||||||
} else if *meshPSKFile != "" {
|
} else if *meshPSKFile != "" {
|
||||||
b, err := setec.StaticFile(*meshPSKFile)
|
b, err := setec.StaticFile(*meshPSKFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user