mirror of
https://github.com/qdm12/gluetun.git
synced 2026-06-18 01:14:10 +02:00
fix(openvpn/extract): trim spaces in config lines before parsing (#3327)
This commit is contained in:
committed by
GitHub
parent
fd12e5f9e7
commit
cd19093d1d
@@ -53,6 +53,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