Fix: use udp by default for custom openvpn config
This commit is contained in:
@@ -171,7 +171,7 @@ func extractConnectionFromLines(lines []string) ( //nolint:gocognit
|
|||||||
|
|
||||||
switch connection.Protocol {
|
switch connection.Protocol {
|
||||||
case "":
|
case "":
|
||||||
return connection, fmt.Errorf("%w: network protocol not found", errExtractConnection)
|
connection.Protocol = "udp"
|
||||||
case "tcp", "udp":
|
case "tcp", "udp":
|
||||||
default:
|
default:
|
||||||
return connection, fmt.Errorf("%w: network protocol not supported: %s", errExtractConnection, connection.Protocol)
|
return connection, fmt.Errorf("%w: network protocol not supported: %s", errExtractConnection, connection.Protocol)
|
||||||
|
|||||||
Reference in New Issue
Block a user