@@ -67,6 +67,7 @@ char *new_fake_version;
6767
6868char * * disallow_srccall_glob , * * new_disallow_srccall_glob ;
6969char * * disallow_login_glob , * * new_disallow_login_glob ;
70+ char * * disallow_igate_glob , * * new_disallow_igate_glob ;
7071
7172int listen_low_ports = 0 ; /* do we have any < 1024 ports set? need POSIX capabilities? */
7273
@@ -188,6 +189,7 @@ static struct cfgcmd cfg_cmds[] = {
188189 { "fake_version" , _CFUNC_ do_string , & new_fake_version },
189190 { "disallowlogincall" , _CFUNC_ do_string_array , & new_disallow_login_glob },
190191 { "disallowsourcecall" , _CFUNC_ do_string_array , & new_disallow_srccall_glob },
192+ { "disallowigatecall" , _CFUNC_ do_string_array , & new_disallow_igate_glob },
191193 { NULL , NULL , NULL }
192194};
193195
@@ -1405,7 +1407,19 @@ int read_config(void)
14051407 disallow_login_glob = NULL ;
14061408 free_string_array (o );
14071409 }
1408-
1410+
1411+ if (new_disallow_igate_glob ) {
1412+ char * * o = disallow_igate_glob ;
1413+ disallow_igate_glob = new_disallow_igate_glob ;
1414+ new_disallow_igate_glob = NULL ;
1415+ if (o )
1416+ free_string_array (o );
1417+ } else if (disallow_igate_glob ) {
1418+ char * * o = disallow_igate_glob ;
1419+ disallow_igate_glob = NULL ;
1420+ free_string_array (o );
1421+ }
1422+
14091423 /* validate uplink config: if there is a single 'multiro' connection
14101424 * configured, all of the uplinks must be 'multiro'
14111425 */
@@ -1535,5 +1549,9 @@ void free_config(void)
15351549 free_string_array (disallow_login_glob );
15361550 disallow_login_glob = NULL ;
15371551 }
1552+ if (disallow_igate_glob ) {
1553+ free_string_array (disallow_igate_glob );
1554+ disallow_igate_glob = NULL ;
1555+ }
15381556}
15391557
0 commit comments