apps/default/helpers/micromenus.rb in adhearsion-0.7.5 vs apps/default/helpers/micromenus.rb in adhearsion-0.7.6

- old
+ new

@@ -19,10 +19,10 @@ require 'builder' require 'webrick' require 'stringio' class WEBrick::HTTPRequest - def ip() @peeraddr[3] end + def ip() @peeraddr[3][/(\d{1,3}\.){3}\d{1,3}/] end end # Micromenu catchers are special hooks that allow integration # between micromenus and incoming calls (specifically, incoming # calls generated by the micromenus)