Created
June 2, 2017 21:39
-
-
Save verbosemode/6844daa4db4a7add7d3429d379f9831a to your computer and use it in GitHub Desktop.
Linux Capabilities Privileged port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_website_tls git:master ❯ ./https --https=443 | |
2017-06-02 23:33:48 +02:00: INF [tcpip-stack-socket] Manager: connect | |
2017-06-02 23:33:48 +02:00: INF [tcpip-stack-socket] Manager: configuring | |
2017-06-02 23:33:48 +02:00: INF [https] listening on 443/TCP | |
2017-06-02 23:33:48 +02:00: ERR [application] main: Unix.Unix_error(Unix.EACCES, "bind", "") | |
Raised by primitive operation at file "src/unix/lwt_unix.cppo.ml", line 1615, characters 52-74 | |
Called from file "unix/tcpip_stack_socket.ml", line 113, characters 6-73 | |
Called from file "lib/conduit_mirage.ml", line 207, characters 4-113 | |
Called from file "dispatch.ml", line 90, characters 6-45 | |
Called from file "src/core/lwt.ml", line 670, characters 66-69 | |
static_website_tls git:master ❯ sudo setcap cap_net_bind_service=+ep _build/main.native | |
static_website_tls git:master ❯ ./https --https=443 | |
2017-06-02 23:34:28 +02:00: INF [tcpip-stack-socket] Manager: connect | |
2017-06-02 23:34:28 +02:00: INF [tcpip-stack-socket] Manager: configuring | |
2017-06-02 23:34:28 +02:00: INF [https] listening on 443/TCP | |
2017-06-02 23:34:28 +02:00: INF [http] listening on 8080/TCP | |
2017-06-02 23:34:37 +02:00: INF [https] [1] closing | |
2017-06-02 23:34:37 +02:00: INF [https] [2] serving //localhost/. | |
2017-06-02 23:34:38 +02:00: INF [https] [2] serving //localhost/favicon.ico. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment