Hello all,

I have already asked this question at stackoverflow.com (see here 
https://stackoverflow.com/q/65682611/1119601), but did not get any response so 
far. So I hope it is okay to ask this here, too.

I would like to log the IP of the DJ when he connects to the server. I have 
already tried this:

def on_connect(headers) =
    list.iter(fun(pair) -> log(fst(pair) ^ " --> " ^ snd(pair), label="debug"), 
headers)
end

stream = input.harbor("",port=10260,icy=true,on_connect=on_connect)

But when a DJ connects (with shoutcast source client), I only get those log 
entries:

2021/01/12 10:23:24 [debug:3] Host --> live.example.com:10260
2021/01/12 10:23:24 [debug:3] icy-name --> Test
2021/01/12 10:23:24 [debug:3] icy-pub --> 0
2021/01/12 10:23:24 [debug:3] icy-br --> 128
2021/01/12 10:23:24 [debug:3] content-type --> audio/mpeg

So there is no IP. Is there any other way to get it?

Thanks in advance and best regards,

Christian


_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to