diff --git a/outbound/urltest.go b/outbound/urltest.go index 02254df3..f5ae0726 100644 --- a/outbound/urltest.go +++ b/outbound/urltest.go @@ -20,8 +20,9 @@ import ( ) var ( - _ adapter.Outbound = (*URLTest)(nil) - _ adapter.OutboundGroup = (*URLTest)(nil) + _ adapter.Outbound = (*URLTest)(nil) + _ adapter.OutboundGroup = (*URLTest)(nil) + _ adapter.InterfaceUpdateListener = (*URLTest)(nil) ) type URLTest struct { @@ -122,6 +123,11 @@ func (s *URLTest) NewPacketConnection(ctx context.Context, conn N.PacketConn, me return NewPacketConnection(ctx, s, conn, metadata) } +func (s *URLTest) InterfaceUpdated() error { + go s.group.checkOutbounds() + return nil +} + type URLTestGroup struct { ctx context.Context router adapter.Router