Maint: remove startPFCh from Openvpn loop

This commit is contained in:
Quentin McGaw (desktop)
2021-08-18 16:07:35 +00:00
parent 3ad4319163
commit bd110b960b
5 changed files with 37 additions and 17 deletions

View File

@@ -10,7 +10,7 @@ import (
)
func (l *Loop) collectLines(ctx context.Context, done chan<- struct{},
stdout, stderr chan string) {
stdout, stderr chan string, tunnelUpData tunnelUpData) {
defer close(done)
var line string
@@ -46,8 +46,7 @@ func (l *Loop) collectLines(ctx context.Context, done chan<- struct{},
l.logger.Error(line)
}
if strings.Contains(line, "Initialization Sequence Completed") {
l.onTunnelUp(ctx)
l.startPFCh <- struct{}{}
l.onTunnelUp(ctx, tunnelUpData)
}
}
}