projects
/
trust_router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
eaa1a8c
)
Update tids->hostname after configuration reload
author
Jennifer Richards
<jennifer@painless-security.com>
Fri, 20 Apr 2018 15:07:10 +0000
(11:07 -0400)
committer
Jennifer Richards
<jennifer@painless-security.com>
Fri, 20 Apr 2018 15:07:10 +0000
(11:07 -0400)
This was also done in
3b59db3c5565b707e745d58f7ec1df1bdc7c1895
.
Fixes https://bugs.launchpad.net/moonshot-tr/+bug/1765633
tr/tr_trp.c
patch
|
blob
|
history
diff --git
a/tr/tr_trp.c
b/tr/tr_trp.c
index
298299e
..
7ff80fc
100644
(file)
--- 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);