Fix when using CFLink mode and using custom module and port numbers

Signed-off-by: Jarrod Bell <jarrod@commandfusion.com>