mirror of https://github.com/v2ray/v2ray-core
parent
dde6d89004
commit
3152d7fec3
|
@ -67,14 +67,6 @@ func UseAlternativeSystemDialer(dialer SystemDialer) {
|
||||||
effectiveSystemDialer = dialer
|
effectiveSystemDialer = dialer
|
||||||
}
|
}
|
||||||
|
|
||||||
// SubstituteDialer replaces the current system dialer with a given one.
|
|
||||||
// Caller must ensure there is no race condition.
|
|
||||||
// @Deprecated: Use UseAlternativeSimpleSystemDialer.
|
|
||||||
func SubstituteDialer(dialer SystemDialerAdapter) error {
|
|
||||||
UseAlternativeSystemDialer(WithAdapter(dialer))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
effectiveSystemDialer = &DefaultSystemDialer{}
|
effectiveSystemDialer = &DefaultSystemDialer{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue