fix bug, on changing city old config still appears in wrong ports and duplicated encryption methods