Skip to content

Commit

Permalink
fix ignored -port command-line arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mlapshin authored Jan 27, 2023
1 parent 2c282a2 commit ea5a128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hl7proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ func main() {

var headers flagsStringsArray = make(flagsStringsArray, 0)
flag.Var(&headers, "header", "Additional HTTP headers in format 'Header: value'")

flag.Parse()

listenStr := fmt.Sprintf(":%d", *port)

flag.Parse()

if *configId == "" {
fmt.Printf("No required -config flag is provided. Usage:\n")
flag.PrintDefaults()
Expand Down

0 comments on commit ea5a128

Please sign in to comment.