mirror of
https://github.com/BELABOX/belaUI.git
synced 2026-07-04 14:46:41 +00:00
Discard the resolved SRTLA address in belaUI.rb
This was previously used before srtla_send could resolve hostnames Now we let srtla_send do its own lookup as it can iterate through all the addresses and at the moment it also specifically selects IPv4
This commit is contained in:
@@ -154,8 +154,9 @@ post '/start' do
|
||||
error(400, "invalid SRTLA port #{srtla_port}")
|
||||
end
|
||||
begin
|
||||
srtla_addr = IPSocket.getaddress(params[:srtla_addr])
|
||||
$config['srtla_addr'] = params[:srtla_addr]
|
||||
srtla_addr = params[:srtla_addr].strip
|
||||
IPSocket.getaddress(srtla_addr)
|
||||
$config['srtla_addr'] = srtla_addr
|
||||
rescue
|
||||
error(400, "failed to resolve SRTLA addr #{params[:srtla_addr]}")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user