mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-16 21:09:44 +03:00
Fix wireguard bind
This commit is contained in:
@@ -151,7 +151,7 @@ func (e *Endpoint) Start(resolve bool) error {
|
|||||||
var bind conn.Bind
|
var bind conn.Bind
|
||||||
wgListener, isWgListener := common.Cast[dialer.WireGuardListener](e.options.Dialer)
|
wgListener, isWgListener := common.Cast[dialer.WireGuardListener](e.options.Dialer)
|
||||||
if isWgListener {
|
if isWgListener {
|
||||||
bind = conn.NewStdNetBind(wgListener.WireGuardControl())
|
bind = conn.NewDefaultBind(wgListener.WireGuardControl())
|
||||||
} else {
|
} else {
|
||||||
var (
|
var (
|
||||||
isConnect bool
|
isConnect bool
|
||||||
|
|||||||
Reference in New Issue
Block a user