mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-30 17:03:22 +02:00
fix(openvpn/extract): trim spaces in config lines before parsing (#3327)
This commit is contained in:
committed by
Quentin McGaw
parent
6857210429
commit
73c3ce23da
@@ -55,6 +55,8 @@ func extractDataFromLines(lines []string) (
|
||||
func extractDataFromLine(line string) (
|
||||
ip netip.Addr, port uint16, protocol string, err error,
|
||||
) {
|
||||
line = strings.TrimSpace(line)
|
||||
|
||||
switch {
|
||||
case strings.HasPrefix(line, "proto "):
|
||||
protocol, err = extractProto(line)
|
||||
|
||||
Reference in New Issue
Block a user