Skip to content

Commit

Permalink
fix: disabled httpupgrade option for nekoray
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-blog committed Nov 2, 2023
1 parent 369cc7c commit 44d3692
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/edit/dialog_edit_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@ DialogEditProfile::DialogEditProfile(const QString &_type, int profileOrGroupId,
ui->path_l->setVisible(true);
ui->host->setVisible(false);
ui->host_l->setVisible(false);
} else if (txt == "ws" || txt == "http" || txt == "httpupgrade") {
} else if (txt == "ws" || txt == "http") {
ui->header_type->setVisible(false);
ui->header_type_l->setVisible(false);
ui->path->setVisible(true);
ui->path_l->setVisible(true);
ui->host->setVisible(true);
ui->host_l->setVisible(true);
} else if (txt == "httpupgrade") {
ui->header_type->setVisible(false);
ui->header_type_l->setVisible(false);
ui->path->setVisible(true);
ui->path_l->setVisible(false);
ui->host->setVisible(true);
ui->host_l->setVisible(false);
} else {
ui->header_type->setVisible(false);
ui->header_type_l->setVisible(false);
Expand Down

0 comments on commit 44d3692

Please sign in to comment.