1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/transport/config.go

14 lines
247 B
Go
Raw Normal View History

2016-06-01 19:49:25 -04:00
package transport
2016-06-14 16:54:08 -04:00
import (
2021-02-16 15:31:50 -05:00
"github.com/v2fly/v2ray-core/v4/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.
func (c *Config) Apply() error {
if c == nil {
2016-10-14 15:19:26 -04:00
return nil
}
2018-04-03 18:29:30 -04:00
return internet.ApplyGlobalTransportSettings(c.TransportSettings)
2016-06-01 19:49:25 -04:00
}