aboutsummaryrefslogtreecommitdiff
path: root/internal/conf/conf.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/conf/conf.go')
-rw-r--r--internal/conf/conf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/conf/conf.go b/internal/conf/conf.go
index 49bb2949..99e9a325 100644
--- a/internal/conf/conf.go
+++ b/internal/conf/conf.go
@@ -18,13 +18,13 @@ import (
_ "github.com/go-macaron/cache/redis"
_ "github.com/go-macaron/session/redis"
"github.com/gogs/go-libravatar"
- "github.com/mcuadros/go-version"
"github.com/pkg/errors"
"gopkg.in/ini.v1"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/assets/conf"
"gogs.io/gogs/internal/osutil"
+ "gogs.io/gogs/internal/semverutil"
)
func init() {
@@ -156,7 +156,7 @@ func Init(customConf string) error {
return errors.Wrap(err, "get OpenSSH version")
}
- if IsWindowsRuntime() || version.Compare(sshVersion, "5.1", "<") {
+ if IsWindowsRuntime() || semverutil.Compare(sshVersion, "<", "5.1") {
log.Warn(`SSH minimum key size check is forced to be disabled because server is not eligible:
1. Windows server
2. OpenSSH version is lower than 5.1`)