Skip to content

Commit 69fe5dd

Browse files
committed
Typo
1 parent f793da4 commit 69fe5dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vsl/records.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func NewBackendStartRecord(blr BaseRecord) (BackendStartRecord, error) {
315315
return BackendStartRecord{}, fmt.Errorf("conversion to BackendStartRecord failed, incorrect len on line %q", blr.GetRawLog())
316316
}
317317

318-
remoteAddr := net.ParseIP(strings.Trim(parts[2], "[]"))
318+
remoteAddr := net.ParseIP(strings.Trim(parts[0], "[]"))
319319
if remoteAddr == nil {
320320
return BackendStartRecord{}, fmt.Errorf("conversion to BackendStartRecord failed, bad remoteAddr on line %q", blr.GetRawLog())
321321
}

0 commit comments

Comments
 (0)