mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
17 lines
272 B
Go
17 lines
272 B
Go
package transport
|
|
|
|
import (
|
|
"v2ray.com/core/transport/internet"
|
|
)
|
|
|
|
// Apply applies this Config.
|
|
func (v *Config) Apply() error {
|
|
if v == nil {
|
|
return nil
|
|
}
|
|
if err := internet.ApplyGlobalNetworkSettings(v.NetworkSettings); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|