Fix reset outbounds

This commit is contained in:
世界
2024-07-07 15:45:50 +08:00
parent 6144c8e340
commit 98ff897f35
13 changed files with 92 additions and 15 deletions

View File

@@ -116,8 +116,8 @@ func (h *Hysteria2) NewPacketConnection(ctx context.Context, conn N.PacketConn,
return NewPacketConnection(ctx, h, conn, metadata)
}
func (h *Hysteria2) InterfaceUpdated() error {
return h.client.CloseWithError(E.New("network changed"))
func (h *Hysteria2) InterfaceUpdated() {
h.client.CloseWithError(E.New("network changed"))
}
func (h *Hysteria2) Close() error {