Skip to content

Commit 2fac219

Browse files
authored
Merge pull request #97 from drakkan/v4mappedv6
add support for parsing IPv4-mapped IPv6 addresses also fix tests with goroutines
2 parents 195fedc + b56df1a commit 2fac219

File tree

6 files changed

+266
-59
lines changed

6 files changed

+266
-59
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
go: [ '1.15' ]
13+
go: ['1.19', '1.20']
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Set up Go

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/pires/go-proxyproto
22

3-
go 1.13
3+
go 1.18

header_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
const (
1616
NO_PROTOCOL = "There is no spoon"
1717
IP4_ADDR = "127.0.0.1"
18+
IP4IN6_ADDR = "::ffff:127.0.0.1"
1819
IP6_ADDR = "::1"
1920
IP6_LONG_ADDR = "1234:5678:9abc:def0:cafe:babe:dead:2bad"
2021
PORT = 65533

0 commit comments

Comments
 (0)