https listener
This commit is contained in:
parent
c85617c080
commit
630dd4f089
|
@ -84,6 +84,11 @@ open_listener({mqtts, Port, Options}) ->
|
||||||
|
|
||||||
%% open http port
|
%% open http port
|
||||||
open_listener({http, Port, Options}) ->
|
open_listener({http, Port, Options}) ->
|
||||||
|
MFArgs = {emqttd_http, handle_request, []},
|
||||||
|
mochiweb:start_http(Port, Options, MFArgs);
|
||||||
|
|
||||||
|
%% open https port
|
||||||
|
open_listener({https, Port, Options}) ->
|
||||||
MFArgs = {emqttd_http, handle_request, []},
|
MFArgs = {emqttd_http, handle_request, []},
|
||||||
mochiweb:start_http(Port, Options, MFArgs).
|
mochiweb:start_http(Port, Options, MFArgs).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue