Jump to content
Cesbo Community
  • Announcements

    • RadioSintetica

      Information   10/21/18

      Registration on the forum temporarily closed! For support requests, please contacat us: https://cesbo.com/help
      Our community in Telegram: @cesbo_en (English language) , @cesbo_ru (Russian language) , @cesbo_es (Spanish Language)

Leaderboard


Popular Content

Showing most liked content since 02/23/19 in all areas

  1. 1 point
  2. 1 point
    Hi, please check this script (for server 2): np_server_address = "server-3-address:port" init_input_module.transmit = function() return transmit() end kill_input_module.transmit = function(module) -- end function http_np_callback(server, client, request) local client_data = server:data(client) if not request then kill_channel(client_data.stream) client_data.stream = nil return nil end local addr = request.path:sub(2) client_data.stream = make_channel({ name = addr, input = { "transmit://#no_analyze" }, output = { "udp://" .. addr, "np://" .. np_server_address .. "/" .. addr, }, }) client_data.stream.input[1].input.tail:set_upstream(request.stream) server:send(client, { code = 200, headers = { "Connection: keep-alive" }, }) end http_server({ port = 8000, route = {{ "/*", http_downstream({ callback = http_np_callback }) }}, })
×