fix: ci happy now?

This commit is contained in:
Azz 2022-08-17 19:32:20 +01:00
parent b6d324be69
commit c316f53e23
No known key found for this signature in database
GPG Key ID: FA4B7CA14E83F106

3
app.go
View File

@ -129,7 +129,6 @@ func NewHeadscale(cfg *Config) (*Headscale, error) {
switch cfg.DBtype {
case Postgres:
dbString = fmt.Sprintf(
"host=%s port=%d dbname=%s user=%s password=%s",
"host=%s dbname=%s user=%s",
cfg.DBhost,
cfg.DBname,
@ -138,7 +137,7 @@ func NewHeadscale(cfg *Config) (*Headscale, error) {
if !cfg.DBssl {
dbString = dbString + " sslmode=disable"
}
}
if cfg.DBport != 0 {
dbString += fmt.Sprintf(" port=%d", cfg.DBport)