|
@@ -279,7 +279,7 @@ module InterconnectionPointProtocolHandler
|
|
# .. is too long, use ip-address instead.
|
|
# .. is too long, use ip-address instead.
|
|
# .. has too many dots, use ip-address instead.
|
|
# .. has too many dots, use ip-address instead.
|
|
# .. has too many numbers, use ip-address instead.
|
|
# .. has too many numbers, use ip-address instead.
|
|
- if domainname.length > 23 || domainname.split(".").size > 3 || domainname.scan(/\d/).size > 3
|
|
|
|
|
|
+ if domainname.length > 21 || domainname.split(".").size > 3 || domainname.scan(/\d/).size > 3
|
|
put_log "cutting down host_name: #{domainname}, because:"
|
|
put_log "cutting down host_name: #{domainname}, because:"
|
|
put_log "#{domainname.length}"
|
|
put_log "#{domainname.length}"
|
|
put_log "#{domainname.split(".").size}"
|
|
put_log "#{domainname.split(".").size}"
|
|
@@ -369,8 +369,8 @@ module InterconnectionPointProtocolHandler
|
|
put_log "SYS User '#{username}' tried to double connect. Say bye bye."
|
|
put_log "SYS User '#{username}' tried to double connect. Say bye bye."
|
|
send_data "SYS Hey '#{username}', only one connection allowed. Bye.\n"
|
|
send_data "SYS Hey '#{username}', only one connection allowed. Bye.\n"
|
|
EventMachine.add_timer 1, proc {
|
|
EventMachine.add_timer 1, proc {
|
|
- close_connection
|
|
|
|
write_user("PING check forced", username)
|
|
write_user("PING check forced", username)
|
|
|
|
+ close_connection
|
|
}
|
|
}
|
|
|
|
|
|
return false
|
|
return false
|