diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-01-25 22:06:41 -0600 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-01-25 22:06:41 -0600 |
commit | d35f3e153496f21ff89bc0f08e0dc436766c48f0 (patch) | |
tree | 79b1c9ebe058662f0fd1adb1139397a51c230d1b /pkg/auth/sip2/spec.go | |
parent | 5bb198c1a5da3132945915947b88ad4a59dc7fcb (diff) |
get sip2 telnet terminator from env var
Diffstat (limited to 'pkg/auth/sip2/spec.go')
-rw-r--r-- | pkg/auth/sip2/spec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/auth/sip2/spec.go b/pkg/auth/sip2/spec.go index 60a14d9..ba7c356 100644 --- a/pkg/auth/sip2/spec.go +++ b/pkg/auth/sip2/spec.go @@ -111,7 +111,7 @@ func getParser() *Parser { } parser.parseMessage = func(msg string) *Message { - txt := msg[:len(msg)-len(terminator)] + txt := msg[:len(msg)-len(TelnetTerminator)] code, err := strconv.Atoi(txt[:2]) if nil != err { log.Printf("Error parsing integer: %s\n", txt[:2]) |