Skip to content

Commit

Permalink
fix: better error message against older OpenVPN versions (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke authored May 9, 2024
1 parent 70087ae commit 7fcaa9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/openvpn/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (c *Client) handleMessage(message string) error {
c.commandsCh <- "hold release"
case ">INFO:":
// welcome message
if message == ">INFO:OpenVPN Management Interface Version 5 -- type 'help' for more info\r\n" {
if strings.HasPrefix(message, ">INFO:OpenVPN Management Interface Version") {
return nil
}

Expand Down

0 comments on commit 7fcaa9c

Please sign in to comment.