github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/transport/global/config.go (about)

     1  package global
     2  
     3  import (
     4  	"github.com/xmplusdev/xmcore/transport/internet"
     5  )
     6  
     7  // Apply applies this Config.
     8  func (c *Config) Apply() error {
     9  	if c == nil {
    10  		return nil
    11  	}
    12  	return internet.ApplyGlobalTransportSettings(c.TransportSettings)
    13  }