1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-03 16:07:16 -05:00

implement system network environment

This commit is contained in:
Shelikhoo 2023-05-30 00:20:34 +01:00
parent 94639807ad
commit 0e519b9fb3
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -166,6 +166,8 @@ func (p *proxyEnvImpl) NarrowScopeToTransport(key string) (TransportEnvironment,
return &transportEnvImpl{
ctx: p.ctx,
transientStorage: transientStorage,
systemDialer: p.systemDialer,
systemListener: p.systemListener,
}, nil
}
@ -190,11 +192,11 @@ func (t *transportEnvImpl) RecordLog() interface{} {
}
func (t *transportEnvImpl) Dialer() internet.SystemDialer {
panic("implement me")
return t.systemDialer
}
func (t *transportEnvImpl) Listener() internet.SystemListener {
panic("implement me")
return t.systemListener
}
func (t *transportEnvImpl) OutboundDialer() tagged.DialFunc {