|
@@ -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 连接
|
|
|
}
|
|
|
}
|