Do not check hostname on configuration change - it causes problem whe slave connection stuck.