alroyso 4 months ago
parent
commit
0f01d21cae
1 changed files with 1 additions and 2 deletions
  1. 1 2
      windows/wl_base_help_plugin.cpp

+ 1 - 2
windows/wl_base_help_plugin.cpp

@@ -241,8 +241,7 @@ bool isDialUpEnabled() {
     // 枚举所有的 RAS 连接,检查是否有 PPP 连接
     if (RasEnumConnections(rasConn, &dwSize, &dwConnections) == ERROR_SUCCESS) {
         for (DWORD i = 0; i < dwConnections; i++) {
-            if (wcscmp(rasConn[i].szDeviceType, L"RASDT_PPP") == 0 ||
-                wcscmp(rasConn[i].szDeviceType, L"RASDT_PPPoE") == 0) {
+            if (wcscmp(rasConn[i].szDeviceType, L"RASDT_PPPoE") == 0) {
                 return true;  // 检测到 PPP 或 PPPoE 连接
             }
         }