Skip to content

Commit 009cf8b

Browse files
committed
Fix IPv6 address parsing (#79)
1 parent 24fb168 commit 009cf8b

10 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ coverage:
3030
#xdg-open /tmp/coverage.html
3131

3232
release/goss-linux-386:
33-
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-X main.version=$(TRAVIS_TAG)" -o release/$(cmd)-linux-386 $(exe)
33+
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-linux-386 $(exe)
3434
goupx $@
3535
release/goss-linux-amd64:
36-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(TRAVIS_TAG)" -o release/$(cmd)-linux-amd64 $(exe)
36+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-linux-amd64 $(exe)
3737
goupx $@
3838
build: release/goss-linux-386 release/goss-linux-amd64
3939

‎glide.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import:
55
- package: github.com/mitchellh/go-ps
66
ref: e6c6068076470196af082b1ff896e24a51a87b2a
77
- package: github.com/aelsabbahy/GOnetstat
8-
ref: 2907f74398ebea717cab8187513bee184b1fdd26
8+
ref: edf89f784e0876818dc19f7744a16742a0a66f16
99
- package: github.com/codegangsta/cli
1010
ref: 70e3fa51ebed95df8c0fbe1519c1c1f9bc16bb13
1111
- package: github.com/godbus/dbus

‎integration-tests/goss/alpine3/goss-expected.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"tcp6:80": {
4242
"listening": true,
4343
"ip": [
44-
"0000:0000:0000:0000:0000:0000:0000:0000"
44+
"::"
4545
]
4646
},
4747
"tcp:80": {

‎integration-tests/goss/alpine3/goss.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"port": {
6060
"tcp6:80": {
6161
"listening": true,
62-
"ip": ["0000:0000:0000:0000:0000:0000:0000:0000"]
62+
"ip": ["::"]
6363
}
6464
},
6565
"gossfile": {

‎integration-tests/goss/centos6/goss-aa-expected.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"tcp6:80": {
1212
"listening": true,
1313
"ip": [
14-
"0000:0000:0000:0000:0000:0000:0000:0000"
14+
"::"
1515
]
1616
}
1717
},

‎integration-tests/goss/centos6/goss-expected.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"tcp6:80": {
4242
"listening": true,
4343
"ip": [
44-
"0000:0000:0000:0000:0000:0000:0000:0000"
44+
"::"
4545
]
4646
},
4747
"tcp:80": {

‎integration-tests/goss/centos6/goss.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"port": {
6060
"tcp6:80": {
6161
"listening": true,
62-
"ip": ["0000:0000:0000:0000:0000:0000:0000:0000"]
62+
"ip": ["::"]
6363
}
6464
},
6565
"gossfile": {

‎integration-tests/goss/wheezy/goss-aa-expected.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"tcp6:80": {
1212
"listening": true,
1313
"ip": [
14-
"0000:0000:0000:0000:0000:0000:0000:0000"
14+
"::"
1515
]
1616
}
1717
},

‎integration-tests/goss/wheezy/goss-expected.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"tcp6:80": {
4242
"listening": true,
4343
"ip": [
44-
"0000:0000:0000:0000:0000:0000:0000:0000"
44+
"::"
4545
]
4646
},
4747
"tcp:80": {

‎integration-tests/goss/wheezy/goss.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"port": {
6060
"tcp6:80": {
6161
"listening": true,
62-
"ip": ["0000:0000:0000:0000:0000:0000:0000:0000"]
62+
"ip": ["::"]
6363
}
6464
},
6565
"gossfile": {

0 commit comments

Comments
 (0)
⌂ 换网址