mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
Maint: decouple OpenVPN config writer from loop
This commit is contained in:
@@ -47,7 +47,7 @@ func (l *Loop) Run(ctx context.Context, done chan<- struct{}) {
|
||||
}
|
||||
}
|
||||
|
||||
if err := l.writeOpenvpnConf(lines); err != nil {
|
||||
if err := l.conf.WriteConfig(lines); err != nil {
|
||||
l.signalOrSetStatus(constants.Crashed)
|
||||
l.logAndWait(ctx, err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user