fix: ci happy now?
This commit is contained in:
parent
b6d324be69
commit
c316f53e23
1 changed files with 1 additions and 2 deletions
3
app.go
3
app.go
|
@ -129,7 +129,6 @@ func NewHeadscale(cfg *Config) (*Headscale, error) {
|
||||||
switch cfg.DBtype {
|
switch cfg.DBtype {
|
||||||
case Postgres:
|
case Postgres:
|
||||||
dbString = fmt.Sprintf(
|
dbString = fmt.Sprintf(
|
||||||
"host=%s port=%d dbname=%s user=%s password=%s",
|
|
||||||
"host=%s dbname=%s user=%s",
|
"host=%s dbname=%s user=%s",
|
||||||
cfg.DBhost,
|
cfg.DBhost,
|
||||||
cfg.DBname,
|
cfg.DBname,
|
||||||
|
@ -138,7 +137,7 @@ func NewHeadscale(cfg *Config) (*Headscale, error) {
|
||||||
|
|
||||||
if !cfg.DBssl {
|
if !cfg.DBssl {
|
||||||
dbString = dbString + " sslmode=disable"
|
dbString = dbString + " sslmode=disable"
|
||||||
}
|
}
|
||||||
|
|
||||||
if cfg.DBport != 0 {
|
if cfg.DBport != 0 {
|
||||||
dbString += fmt.Sprintf(" port=%d", cfg.DBport)
|
dbString += fmt.Sprintf(" port=%d", cfg.DBport)
|
||||||
|
|
Loading…
Reference in a new issue