2016-06-01 19:49:25 -04:00
|
|
|
package transport
|
|
|
|
|
2016-06-14 16:54:08 -04:00
|
|
|
import (
|
2016-10-02 17:43:58 -04:00
|
|
|
"v2ray.com/core/transport/internet"
|
2016-06-14 16:54:08 -04:00
|
|
|
)
|
2016-06-11 07:51:02 -04:00
|
|
|
|
2016-06-11 07:29:33 -04:00
|
|
|
// Apply applies this Config.
|
2016-11-27 15:39:09 -05:00
|
|
|
func (v *Config) Apply() error {
|
|
|
|
if v == nil {
|
2016-10-14 15:19:26 -04:00
|
|
|
return nil
|
|
|
|
}
|
2016-11-27 15:39:09 -05:00
|
|
|
if err := internet.ApplyGlobalNetworkSettings(v.NetworkSettings); err != nil {
|
2016-10-14 15:19:26 -04:00
|
|
|
return err
|
|
|
|
}
|
2016-06-02 14:52:52 -04:00
|
|
|
return nil
|
2016-06-01 19:49:25 -04:00
|
|
|
}
|