Notification endpoint URL with custom port not working

After creating an HTTP notification endpoint using an http URL with a specified destination port, the notification is sent to port 80 instead of the specified destination port.

Steps to reproduce:
List the minimal actions needed to reproduce the behaviour.

  1. create an http notification endpoint that specifies a port as well as a URL e.g. http://my.listening.service:81/webhook
  2. trigger the notification to be sent

Expected behaviour:
The HTTP post will be received on the specified destination port e.g. port 81 in the above example

Actual behaviour:
The HTTP post is received on port 80

Environment info:

This is the InfluxDB that is embedded inside the Security Onion product (SO Version 2.4.190)
Host is: Linux 5.15.0-313.189.5.3.el9uek.x86_64 x86_64