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
mf
go-multiaddr
Commits
18266e97
Commit
18266e97
authored
Dec 14, 2021
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unexport InterfaceAddresses
parent
1269a587
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net/resolve.go
net/resolve.go
+3
-3
No files found.
net/resolve.go
View file @
18266e97
...
...
@@ -41,7 +41,7 @@ func ResolveUnspecifiedAddresses(unspecAddrs, ifaceAddrs []ma.Multiaddr) ([]ma.M
// todo optimize: only fetch these if we have a "any" addr.
if
len
(
ifaceAddrs
)
<
1
{
var
err
error
ifaceAddrs
,
err
=
I
nterfaceAddresses
()
ifaceAddrs
,
err
=
i
nterfaceAddresses
()
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -63,10 +63,10 @@ func ResolveUnspecifiedAddresses(unspecAddrs, ifaceAddrs []ma.Multiaddr) ([]ma.M
return
outputAddrs
,
nil
}
//
I
nterfaceAddresses returns a list of addresses associated with local machine
//
i
nterfaceAddresses returns a list of addresses associated with local machine
// Note: we do not return link local addresses. IP loopback is ok, because we
// may be connecting to other nodes in the same machine.
func
I
nterfaceAddresses
()
([]
ma
.
Multiaddr
,
error
)
{
func
i
nterfaceAddresses
()
([]
ma
.
Multiaddr
,
error
)
{
maddrs
,
err
:=
InterfaceMultiaddrs
()
if
err
!=
nil
{
return
nil
,
err
...
...
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