Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
The vpnc script completing is also a success scenario for openconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Nov 28, 2016
1 parent d1c2466 commit c7dc37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mole/cmd/mole/openconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (p OpenConnectProvider) Start(cfg *conf.Config) (VPN, error) {
line := strings.TrimSpace(string(bs))
debugln("opnc:", line)

if strings.Contains(line, "Connected tun") || strings.Contains(line, "Connected utun") {
if line == "mole-vpnc-script-next" || strings.Contains(line, "Connected tun") || strings.Contains(line, "Connected utun") {
debugln(msgOpncConnected)
return &OpenConnect{*cmd, script}, nil
}
Expand Down

0 comments on commit c7dc37e

Please sign in to comment.