Revise dnsagent service and its default port

This commit is contained in:
arberkatellari
2023-06-19 11:07:52 -04:00
committed by Dan Christian Bogos
parent 8fb0ab08e3
commit 8c19386d58
13 changed files with 143 additions and 149 deletions

View File

@@ -735,7 +735,7 @@ const CGRATES_CFG_JSON = `
"enabled": false, // enables the DNS agent: <true|false>
"listeners":[
{
"address": "127.0.0.1:2053", // address where to listen for DNS requests <x.y.z.y:1234>
"address": "127.0.0.1:53", // address where to listen for DNS requests <x.y.z.y:1234>
"network": "udp" // network to listen on <udp|tcp|tcp-tls>
}
],

View File

@@ -653,6 +653,10 @@ func testCGRConfigReloadDNSAgent(t *testing.T) {
Address: ":2053",
Network: "udp",
},
{
Address: ":2054",
Network: "tcp",
},
},
SessionSConns: []string{utils.ConcatenatedKey(utils.MetaInternal, utils.MetaSessionS)},
// Timezone string

View File

@@ -1015,7 +1015,7 @@ func TestDNSAgentJsonCfg(t *testing.T) {
Listeners: &[]*ListenerJsnCfg{
{
Network: utils.StringPointer("udp"),
Address: utils.StringPointer("127.0.0.1:2053"),
Address: utils.StringPointer("127.0.0.1:53"),
},
},
Sessions_conns: &[]string{utils.ConcatenatedKey(utils.MetaInternal)},

File diff suppressed because one or more lines are too long