This commit is contained in:
qingjiao 2025-12-12 18:20:59 +08:00
parent 25de7b4c32
commit ec9de64189
2 changed files with 2 additions and 1 deletions

View File

@ -4,4 +4,5 @@
<option name="pythonIntegrationState" value="YES" />
</component>
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
<component name="WestSettings"><![CDATA[{}]]></component>
</project>

View File

@ -125,7 +125,7 @@ void Config::groupBroadcast(const CTL::ByteArray &data, int port) {
void Config::SetNetWorkInfo(const CTL::String& IP,const CTL::String& GW,const CTL::String& Mask) {
try{
//获取当前网络名称
CTL::String GetNetName = ("nmcli -t -f NAME,TYPE,DEVICE,STATE con show --active");
const CTL::String GetNetName = ("nmcli -t -f NAME,TYPE,DEVICE,STATE con show --active");
CTL::Process Process;
Process.Command(GetNetName);
Process.Start();