add CloseLocalUnsThenStartRemoteUns function and TriggerPort in config