Skip to content

Commit 619f6c4

Browse files
committed
proper naming :)
1 parent 7c36c86 commit 619f6c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/lk/sip.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ var (
370370
Value: 80 * time.Second,
371371
},
372372
&cli.StringSliceFlag{
373-
Name: "headers",
374-
Usage: "Custom SIP headers in format 'Key:Value' (can be specified multiple times)",
373+
Name: "header",
374+
Usage: "Custom SIP header in format 'Key:Value' (can be specified multiple times)",
375375
},
376376
},
377377
},
@@ -1159,8 +1159,8 @@ func createSIPParticipant(ctx context.Context, cmd *cli.Command) error {
11591159
req.WaitUntilAnswered = true
11601160
}
11611161

1162-
// Parse headers from StringSliceFlag
1163-
if headers := cmd.StringSlice("headers"); len(headers) > 0 {
1162+
// Parse headers from repeatable "header" flag
1163+
if headers := cmd.StringSlice("header"); len(headers) > 0 {
11641164
if req.Headers == nil {
11651165
req.Headers = make(map[string]string)
11661166
}

0 commit comments

Comments
 (0)