Module: kamailio
Branch: master
Commit: 54d8cce28a5c4cbd944d39b1523571fbb5776baa
URL:
https://github.com/kamailio/kamailio/commit/54d8cce28a5c4cbd944d39b1523571f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-20T16:39:08+02:00
core: use advertised proto to build advertised sock string
---
Modified: src/core/socket_info.c
---
Diff:
https://github.com/kamailio/kamailio/commit/54d8cce28a5c4cbd944d39b1523571f…
Patch:
https://github.com/kamailio/kamailio/commit/54d8cce28a5c4cbd944d39b1523571f…
---
diff --git a/src/core/socket_info.c b/src/core/socket_info.c
index ae2ee6f20a4..230eab02ff5 100644
--- a/src/core/socket_info.c
+++ b/src/core/socket_info.c
@@ -456,7 +456,11 @@ int socketinfo2str(char *s, int *len, struct socket_info *si, int
mode)
str proto;
int l;
- proto.s = get_valid_proto_name(si->proto);
+ if(si->useinfo.proto != PROTO_NONE) {
+ proto.s = get_valid_proto_name(si->useinfo.proto);
+ } else {
+ proto.s = get_valid_proto_name(si->proto);
+ }
proto.len = strlen(proto.s);
if(mode == 1)