The community websdr-plus-github can be found here: https://github.com/ny4qphil/PhantomSDR-Plus ..it is compatible with the normal version, but enhanced.

Port and hostname:port given....big bug.

Started by Bas ON5HB, Jan 30, 2025, 05:26 PM

Previous topic - Next topic

Bas ON5HB

Bug in the SDRlist listing. The list should check this.
How to create the problem? In the TOML-file

[server]
port=81 # Server port
html_root="frontend/dist/" # HTML files to be hosted
otherusers=1 # Send where other users are listening, 0 to disable
threads=2

[websdr]
register_online=true # If the SDR should be registered on https://sdr-list.xyz then put it to true
name="Heppen AirspyHF Websdr" # Name that is shown on https://sdr-list.xyz
antenna="G5RV" # Antenna that is shown on https://sdr-list.xyz
grid_locator="JO21oc" # 4 or 6 length Grid Locatlr shown on https://sdr-list.xyz and for the Distance of FT8 Signals
hostname="http://websdr.heppen.be:81" # If you use ddns or something to host with a domain enter it here for https://sdr-list.xyz

If you define the SEVER-PORT and then add the port to the HOSTNAME. The websdr will be listed twice or more.
When you click it, all sorts of strange things happen.

The SDR-list forware should simply ignore the hostname-port. As because both parameters are given, the sdr-list gets this:

http://websdr.heppen.be:81:81
The list should not accept that and remove the websdr when it sees a hostname that contains a port....OR simply remove the seconds portpart and make a notice on the page that server-port AND hostname:port should NOT both be used.

I did some testing, and the list goes nuts when both are given.....by mistake.
Best regards,

Bas ON5HB

Ps. the Community Edition can be found here: https://github.com/ny4qphil/PhantomSDR-Plus

Powered by EzPortal