config.go 281 B

12345678910111213141516
  1. package transport
  2. import (
  3. "v2ray.com/core/transport/internet"
  4. )
  5. // Apply applies this Config.
  6. func (this *Config) Apply() error {
  7. if this == nil {
  8. return nil
  9. }
  10. if err := internet.ApplyGlobalNetworkSettings(this.NetworkSettings); err != nil {
  11. return err
  12. }
  13. return nil
  14. }