X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FFonBot%2FPlugin%2FHTTPD.pm;h=1efec362990f6b4f3ce5b20623cc2bad7cbd08ec;hb=HEAD;hp=933a56c61843cabce48f36d7783f02f1bc382166;hpb=31d9adeefab30e0e8902454d677d0df1ca26c6ee;p=app-fonbot-daemon.git diff --git a/lib/App/FonBot/Plugin/HTTPD.pm b/lib/App/FonBot/Plugin/HTTPD.pm index 933a56c..1efec36 100644 --- a/lib/App/FonBot/Plugin/HTTPD.pm +++ b/lib/App/FonBot/Plugin/HTTPD.pm @@ -1,6 +1,6 @@ package App::FonBot::Plugin::HTTPD; -our $VERSION = '0.000_5'; +our $VERSION = '0.001'; use v5.14; use strict; @@ -33,7 +33,7 @@ sub init{ %waiting_requests = (); %waiting_userrequests = (); $httpd = POE::Component::Server::HTTP->new( - Port => 8888, + Port => $httpd_port, PreHandler => { '/' => [\&pre_auth, \&pre_get, \&pre_userget], }, ContentHandler =>{ '/send' => \&on_send, '/get' => \&on_get, '/ok' => \&on_ok, '/userget' => \&on_userget, '/usersend' => \&on_usersend }, ErrorHandler => { '/' => sub { RC_OK }}, @@ -304,7 +304,7 @@ Marius Gavrilescu C<< marius@ieval.ro >> =head1 COPYRIGHT AND LICENSE -Copyright 2013 Marius Gavrilescu +Copyright 2013-2015 Marius Gavrilescu This file is part of fonbotd.