Fixing #9694 master_uri is not updated when master_ip is updated

Update the master_uri when the master_ip address is updated.