manifests: keep private key between restarts
This commit ensures that the WireGuard private key is re-used between container restarts. The result of this is that external peers can keep using their configuration and don't need to be re-configured just because the Kilo container restarted.
This commit is contained in:
@@ -713,10 +713,6 @@ func (m *Mesh) cleanUp() {
|
||||
level.Error(m.logger).Log("error", fmt.Sprintf("failed to clean up routes: %v", err))
|
||||
m.errorCounter.WithLabelValues("cleanUp").Inc()
|
||||
}
|
||||
if err := os.Remove(PrivateKeyPath); err != nil {
|
||||
level.Error(m.logger).Log("error", fmt.Sprintf("failed to delete private key: %v", err))
|
||||
m.errorCounter.WithLabelValues("cleanUp").Inc()
|
||||
}
|
||||
if err := os.Remove(ConfPath); err != nil {
|
||||
level.Error(m.logger).Log("error", fmt.Sprintf("failed to delete configuration file: %v", err))
|
||||
m.errorCounter.WithLabelValues("cleanUp").Inc()
|
||||
|
Reference in New Issue
Block a user