mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-30 22:26:42 +00:00
16 lines
268 B
Go
16 lines
268 B
Go
//go:build !js
|
|
|
|
package ws
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/coder/websocket"
|
|
)
|
|
|
|
func createDialOptions(serverName string, underlyingOut *net.Conn) *websocket.DialOptions {
|
|
return &websocket.DialOptions{
|
|
HTTPClient: httpClientNbDialer(serverName, underlyingOut),
|
|
}
|
|
}
|