switch server address by config