Skip to content

Commit

Permalink
Fix some bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Incognito committed Apr 9, 2020
1 parent bd57622 commit c88551f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/appproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ void AppProxy::clearLogs() {
void AppProxy::getProxySettings() {
bool isV2RayRunning = v2ray.isRunning();
QJsonObject appConfig = configurator.getAppConfig();
bool enableSysProxy = appConfig["enableSysProxy"].toBool();
QString systemProxy = NetworkProxyHelper::getSystemProxy().toString();
QJsonArray connectedServers;
for (QString cs : configurator.getConnectedServerNames()) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ ApplicationWindow {
onAppConfigReady: function(config) {
config = JSON.parse(config)
if (appWindow.firstRun && config["hideWindow"]) {
appWindow.hide()
appWindow.close()
appWindow.firstRun = false
}
if (config["enableSysProxy"]) {
Expand Down
2 changes: 1 addition & 1 deletion src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool Utility::isIpAddrValid(const QString& ipAddr) {
}

bool Utility::isIpAddrListValid(const QString& ipAddrList) {
QStringList ips = ipAddrList.split(",");
QStringList ips = ipAddrList.split(";");
for (QString ip : ips) {
if (!Utility::isIpAddrValid(ip.trimmed())) {
return false;
Expand Down

0 comments on commit c88551f

Please sign in to comment.