satellite/metainfo: remove Gateway-ST library name from UserAgent string

When trimming the UserAgent string, Library names such as Gateway-ST
should be removed.

Change-Id: I3d71fa8514364bf1d4d79b0dc00c85aed337ab45
This commit is contained in:
dlamarmorgan 2021-12-11 12:23:04 -08:00 committed by Damein Morgan
parent c8c4e8835e
commit 9a37399346

View File

@ -82,7 +82,7 @@ func TrimUserAgent(userAgent []byte) ([]byte, error) {
newEntries := userAgentEntries[:0]
for _, e := range userAgentEntries {
switch product := e.Product; product {
case "uplink", "common", "drpc", "":
case "uplink", "common", "drpc", "Gateway-ST", "":
default:
e.Comment = ""
newEntries = append(newEntries, e)