From: Jennifer Richards Date: Fri, 20 Apr 2018 15:07:10 +0000 (-0400) Subject: Update tids->hostname after configuration reload X-Git-Tag: 3.4.0~1^2~37^2~4^2~4 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=05e667e14a4016f713b200f86f15704b5b8a34b6 Update tids->hostname after configuration reload This was also done in 3b59db3c5565b707e745d58f7ec1df1bdc7c1895. Fixes https://bugs.launchpad.net/moonshot-tr/+bug/1765633 --- diff --git a/tr/tr_trp.c b/tr/tr_trp.c index 298299e..7ff80fc 100644 --- a/tr/tr_trp.c +++ b/tr/tr_trp.c @@ -870,6 +870,9 @@ void tr_config_changed(TR_CFG *new_cfg, void *cookie) tr->cfgwatch->settling_time.tv_sec=new_cfg->internal->cfg_settling_time; tr->cfgwatch->settling_time.tv_usec=0; + /* This needs to be updated */ + tr->tids->hostname = new_cfg->internal->hostname; + trps_set_connect_interval(trps, new_cfg->internal->trp_connect_interval); trps_set_update_interval(trps, new_cfg->internal->trp_update_interval); trps_set_sweep_interval(trps, new_cfg->internal->trp_sweep_interval);