Skip to content

Commit

Permalink
update: pass and user
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz committed Aug 24, 2023
1 parent 5aca0bf commit 4747781
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@ func main() {
pass = ""
}

if user != "" && pass != "" {
if err := stallion.NewServer(":"+port, metrics, user, pass); err != nil {
panic(err)
}
} else {
if err := stallion.NewServer(":"+port, metrics); err != nil {
panic(err)
}
if err := stallion.NewServer(":"+port, metrics, user, pass); err != nil {
panic(err)
}
}

0 comments on commit 4747781

Please sign in to comment.