V0.12
This commit is contained in:
parent
25de7b4c32
commit
ec9de64189
@ -4,4 +4,5 @@
|
|||||||
<option name="pythonIntegrationState" value="YES" />
|
<option name="pythonIntegrationState" value="YES" />
|
||||||
</component>
|
</component>
|
||||||
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
||||||
|
<component name="WestSettings"><![CDATA[{}]]></component>
|
||||||
</project>
|
</project>
|
||||||
@ -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) {
|
void Config::SetNetWorkInfo(const CTL::String& IP,const CTL::String& GW,const CTL::String& Mask) {
|
||||||
try{
|
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;
|
CTL::Process Process;
|
||||||
Process.Command(GetNetName);
|
Process.Command(GetNetName);
|
||||||
Process.Start();
|
Process.Start();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user