mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Revise dnsagent service and its default port
This commit is contained in:
committed by
Dan Christian Bogos
parent
8fb0ab08e3
commit
8c19386d58
@@ -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>
|
||||
}
|
||||
],
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user