Software / code / prosody
Comparison
plugins/mod_admin_telnet.lua @ 5662:685d46ec352b
mod_admin_telnet: Simplify IPv6 detection, fixes rare traceback
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 09 Jun 2013 12:59:23 +0200 |
| parent | 5645:ae079d57af2e |
| child | 5666:c1e1b265ee82 |
comparison
equal
deleted
inserted
replaced
| 5661:f226a0d23e85 | 5662:685d46ec352b |
|---|---|
| 495 line[#line+1] = "(compressed)"; | 495 line[#line+1] = "(compressed)"; |
| 496 end | 496 end |
| 497 if session.smacks then | 497 if session.smacks then |
| 498 line[#line+1] = "(sm)"; | 498 line[#line+1] = "(sm)"; |
| 499 end | 499 end |
| 500 if (session.ip or session.conn and session.conn:ip()):match(":") then | 500 if session.ip and session.ip:match(":") then |
| 501 line[#line+1] = "(IPv6)"; | 501 line[#line+1] = "(IPv6)"; |
| 502 end | 502 end |
| 503 return table.concat(line, " "); | 503 return table.concat(line, " "); |
| 504 end | 504 end |
| 505 | 505 |