@@ -62,8 +62,8 @@ func NewConnectClient(
6262}
6363
6464// Run with main logic.
65- func (c * ConnectClient ) Run (runningChan chan struct {}, logFile string ) error {
66- return c .run (MobileDependency {}, runningChan , logFile )
65+ func (c * ConnectClient ) Run (runningChan chan struct {}, logPath string ) error {
66+ return c .run (MobileDependency {}, runningChan , logPath )
6767}
6868
6969// RunOnAndroid with main logic on mobile system
@@ -103,7 +103,7 @@ func (c *ConnectClient) RunOniOS(
103103 return c .run (mobileDependency , nil , "" )
104104}
105105
106- func (c * ConnectClient ) run (mobileDependency MobileDependency , runningChan chan struct {}, logFile string ) error {
106+ func (c * ConnectClient ) run (mobileDependency MobileDependency , runningChan chan struct {}, logPath string ) error {
107107 defer func () {
108108 if r := recover (); r != nil {
109109 rec := c .statusRecorder
@@ -246,7 +246,7 @@ func (c *ConnectClient) run(mobileDependency MobileDependency, runningChan chan
246246 relayURLs , token := parseRelayInfo (loginResp )
247247 peerConfig := loginResp .GetPeerConfig ()
248248
249- engineConfig , err := createEngineConfig (myPrivateKey , c .config , peerConfig , logFile )
249+ engineConfig , err := createEngineConfig (myPrivateKey , c .config , peerConfig , logPath )
250250 if err != nil {
251251 log .Error (err )
252252 return wrapErr (err )
@@ -413,7 +413,7 @@ func (c *ConnectClient) SetSyncResponsePersistence(enabled bool) {
413413}
414414
415415// createEngineConfig converts configuration received from Management Service to EngineConfig
416- func createEngineConfig (key wgtypes.Key , config * profilemanager.Config , peerConfig * mgmProto.PeerConfig , logFile string ) (* EngineConfig , error ) {
416+ func createEngineConfig (key wgtypes.Key , config * profilemanager.Config , peerConfig * mgmProto.PeerConfig , logPath string ) (* EngineConfig , error ) {
417417 nm := false
418418 if config .NetworkMonitor != nil {
419419 nm = * config .NetworkMonitor
@@ -444,7 +444,7 @@ func createEngineConfig(key wgtypes.Key, config *profilemanager.Config, peerConf
444444 LazyConnectionEnabled : config .LazyConnectionEnabled ,
445445
446446 MTU : selectMTU (config .MTU , peerConfig .Mtu ),
447- LogFile : logFile ,
447+ LogPath : logPath ,
448448
449449 ProfileConfig : config ,
450450 }
0 commit comments