Fix port setting for swift
Allow dynamic ssl vs non-ssl