mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 11:21:04 +01:00
15 lines
212 B
Go
15 lines
212 B
Go
|
package udp
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
)
|
||
|
|
||
|
func Dial(address string) (net.Conn, error) {
|
||
|
udpAddr, err := net.ResolveUDPAddr("udp", address)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
|
||
|
return net.DialUDP("udp", nil, udpAddr)
|
||
|
}
|