Added pattern matching to allow custom protocol and port and if nothing is specified it will fallback to the values specified in the config file