Skip to content

Commit

Permalink
fix: use higher port to avoid permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythologyli committed Jul 20, 2024
1 parent 305aadc commit a692711
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions settingwindow/settingwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ SettingWindow::SettingWindow(QWidget *parent, QSettings *inputSettings) :

ui->serverAddressLineEdit->setText(settings->value("ZJUConnect/ServerAddress", "rvpn.zju.edu.cn").toString());
ui->serverPortSpinBox->setValue(settings->value("ZJUConnect/ServerPort", 443).toInt());
ui->socks5PortSpinBox->setValue(settings->value("ZJUConnect/Socks5Port", 1080).toInt());
ui->httpPortSpinBox->setValue(settings->value("ZJUConnect/HttpPort", 1081).toInt());
ui->socks5PortSpinBox->setValue(settings->value("ZJUConnect/Socks5Port", 11080).toInt());
ui->httpPortSpinBox->setValue(settings->value("ZJUConnect/HttpPort", 11081).toInt());
ui->multiLineCheckBox->setChecked(settings->value("ZJUConnect/MultiLine", true).toBool());
ui->proxyAllCheckBox->setChecked(settings->value("ZJUConnect/ProxyAll", false).toBool());
ui->debugCheckBox->setChecked(settings->value("ZJUConnect/Debug", false).toBool());
Expand Down
4 changes: 2 additions & 2 deletions settingwindow/settingwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
<number>65535</number>
</property>
<property name="value">
<number>1080</number>
<number>11080</number>
</property>
</widget>
</item>
Expand All @@ -480,7 +480,7 @@
<number>65535</number>
</property>
<property name="value">
<number>1081</number>
<number>11081</number>
</property>
</widget>
</item>
Expand Down
6 changes: 3 additions & 3 deletions zjuconnectmode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ void MainWindow::setModeToZjuConnect()
settings->value("ZJUConnect/ServerPort", 443).toInt(),
!settings->value("ZJUConnect/MultiLine", true).toBool(),
settings->value("ZJUConnect/ProxyAll", false).toBool(),
"127.0.0.1:" + QString::number(settings->value("ZJUConnect/Socks5Port", 1080).toInt()),
"127.0.0.1:" + QString::number(settings->value("ZJUConnect/HttpPort", 1081).toInt()),
"127.0.0.1:" + QString::number(settings->value("ZJUConnect/Socks5Port", 11080).toInt()),
"127.0.0.1:" + QString::number(settings->value("ZJUConnect/HttpPort", 11081).toInt()),
ui->tunCheckBox->isChecked(),
settings->value("ZJUConnect/Route", false).toBool(),
settings->value("ZJUConnect/Debug", false).toBool(),
Expand Down Expand Up @@ -183,7 +183,7 @@ void MainWindow::setModeToZjuConnect()
}
}

Utils::setSystemProxy(settings->value("ZJUConnect/HttpPort", 1081).toInt());
Utils::setSystemProxy(settings->value("ZJUConnect/HttpPort", 11081).toInt());
ui->pushButton2->setText("清除系统代理");
isSystemProxySet = true;
}
Expand Down

0 comments on commit a692711

Please sign in to comment.