소스 검색

changing variable declaration

afeiszli 3 년 전
부모
커밋
770595d558
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netclient/wireguard/common.go

+ 1 - 1
netclient/wireguard/common.go

@@ -187,7 +187,7 @@ func InitWireguard(node *models.Node, privkey string, peers []wgtypes.PeerConfig
 			}
 		}
 		output, _ = ncutils.RunCmd("wg", false)
-		err = ApplyConf(node, deviceiface, confPath)
+		err = ApplyConf(node, node.Interface, confPath)
 		time.Sleep(time.Second)
 		ifaceReady = strings.Contains(output, deviceiface)
 	}