Skip to content

Commit

Permalink
Also add udpinport to general.json
Browse files Browse the repository at this point in the history
  • Loading branch information
christianTF committed May 11, 2021
1 parent 2ae9e8e commit 6151454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/updateconfig.pl
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ sub update_config
$generaljson->{Mqtt}->{Brokerhost} = $brokerhost;
$generaljson->{Mqtt}->{Brokerport} = $brokerport;

$generaljson->{Mqtt}->{Udpinport} = $cfg->{Main}->{udpinport};


};
if( $@ ) {
LOGWARN "Could not migrate MQTT broker settings to LoxBerry.";
Expand Down
2 changes: 2 additions & 0 deletions webfrontend/htmlauth/ajax_savejson.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ sub save_json

$generaljson->{Mqtt}->{Brokerhost} = $brokerhost;
$generaljson->{Mqtt}->{Brokerport} = $brokerport;

$generaljson->{Mqtt}->{Udpinport} = $cfg->{Main}->{udpinport};

};

Expand Down

0 comments on commit 6151454

Please sign in to comment.