Maint: rework OpenVPN custom configuration code
- Refactor code and errors returned - Add unit tests - Make custom config code independent from loop
This commit is contained in:
@@ -36,7 +36,7 @@ func (l *Loop) Run(ctx context.Context, done chan<- struct{}) {
|
||||
lines = providerConf.BuildConf(connection, openVPNSettings)
|
||||
}
|
||||
} else {
|
||||
lines, connection, err = l.processCustomConfig(openVPNSettings)
|
||||
lines, connection, err = processCustomConfig(openVPNSettings)
|
||||
}
|
||||
if err != nil {
|
||||
l.crashed(ctx, err)
|
||||
|
||||
Reference in New Issue
Block a user