mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-04 09:17:32 -05:00
17 lines
276 B
Go
17 lines
276 B
Go
package transport
|
|
|
|
import (
|
|
"v2ray.com/core/transport/internet"
|
|
)
|
|
|
|
// Apply applies this Config.
|
|
func (c *Config) Apply() error {
|
|
if c == nil {
|
|
return nil
|
|
}
|
|
if err := internet.ApplyGlobalTransportSettings(c.TransportSettings); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|