diff --git a/src/plugins/gitlab/gitlaboptionspage.cpp b/src/plugins/gitlab/gitlaboptionspage.cpp index c5d4037c5bc..160b729e82a 100644 --- a/src/plugins/gitlab/gitlaboptionspage.cpp +++ b/src/plugins/gitlab/gitlaboptionspage.cpp @@ -57,7 +57,7 @@ static bool hostValid(const QString &host) } return true; } - return dn.match(host).hasMatch(); + return (host == "localhost") || dn.match(host).hasMatch(); } GitLabServerWidget::GitLabServerWidget(Mode m, QWidget *parent)