Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1011961 // getClientIP_subBot - for web bots, may return two addresses separated by comma (second one is x-forwarded-for)

JavaX fragment (include)

1  
static S getClientIP_subBot() {
2  
  O session = call(getMainBot(), "getSession");
3  
  Map headers = cast call(session, "getHeaders");
4  
  ret getClientIPFromHeaders(headers);
5  
}

Author comment

Began life as a copy of #1002945

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011961
Snippet name: getClientIP_subBot - for web bots, may return two addresses separated by comma (second one is x-forwarded-for)
Eternal ID of this version: #1011961/2
Text MD5: c083ed3ad7a80fbaefade15655df8390
Author: stefan
Category: eleu / javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-14 00:16:28
Source code size: 174 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 529 / 567
Version history: 1 change(s)
Referenced in: [show references]