mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 22:45:13 +00:00
remove deprecated API
This commit is contained in:
1 file changed
-8
@@ -67,14 +67,6 @@ func UseAlternativeSystemDialer(dialer SystemDialer) {
|
||||
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() {
|
||||
effectiveSystemDialer = &DefaultSystemDialer{}
|
||||
}
|
||||
Reference in new issue
Block a user