2016-06-01 23:49:25 +00:00
|
|
|
package transport
|
|
|
|
|
2016-06-14 20:54:08 +00:00
|
|
|
import (
|
2016-10-02 21:43:58 +00:00
|
|
|
"v2ray.com/core/transport/internet"
|
2016-06-14 20:54:08 +00:00
|
|
|
)
|
2016-06-11 11:51:02 +00:00
|
|
|
|
2016-06-11 11:29:33 +00:00
|
|
|
// Apply applies this Config.
|
2017-01-12 11:54:34 +00:00
|
|
|
func (c *Config) Apply() error {
|
|
|
|
if c == nil {
|
2016-10-14 19:19:26 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-01-12 11:54:34 +00:00
|
|
|
if err := internet.ApplyGlobalTransportSettings(c.TransportSettings); err != nil {
|
2016-10-14 19:19:26 +00:00
|
|
|
return err
|
|
|
|
}
|
2016-06-02 18:52:52 +00:00
|
|
|
return nil
|
2016-06-01 23:49:25 +00:00
|
|
|
}
|