mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-10-16 18:05:06 +03:00
Reusable peer lookup/dial logic
This commit is contained in:
parent
75d2080e53
commit
42873be09b
12 changed files with 193 additions and 124 deletions
|
@ -31,9 +31,6 @@ func (l *links) newLinkUNIX() *linkUNIX {
|
|||
}
|
||||
|
||||
func (l *linkUNIX) dial(ctx context.Context, url *url.URL, info linkInfo, options linkOptions) (net.Conn, error) {
|
||||
if options.tlsSNI != "" {
|
||||
return nil, ErrLinkSNINotSupported
|
||||
}
|
||||
addr, err := net.ResolveUnixAddr("unix", url.Path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue