Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-netroute
Commits
3d626787
Unverified
Commit
3d626787
authored
Mar 30, 2020
by
Steven Allen
Committed by
GitHub
Mar 30, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5 from libp2p/chore/circleci
chore: switch to circleci
parents
01fb8899
cd10c922
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
.circleci/config.yml
.circleci/config.yml
+11
-0
.travis.yml
.travis.yml
+0
-15
netroute_test.go
netroute_test.go
+3
-0
No files found.
.circleci/config.yml
0 → 100644
View file @
3d626787
version
:
2.1
orbs
:
ci-go
:
ipfs/ci-go@0.2
workflows
:
version
:
2
test
:
jobs
:
-
ci-go/build
-
ci-go/lint
-
ci-go/test
.travis.yml
deleted
100644 → 0
View file @
01fb8899
language
:
go
go
:
-
1.13.x
os
:
-
linux
-
osx
-
windows
jobs
:
fast_finish
:
true
script
:
-
go test -v -race .
netroute_test.go
View file @
3d626787
...
...
@@ -20,6 +20,9 @@ func TestRoute(t *testing.T) {
var
localAddr
net
.
IP
var
hasV6
bool
addrs
,
err
:=
ifs
[
0
]
.
Addrs
()
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
for
_
,
addr
:=
range
addrs
{
if
strings
.
HasPrefix
(
addr
.
Network
(),
"ip"
)
{
localAddr
,
_
,
_
=
net
.
ParseCIDR
(
addr
.
String
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment