Skip to content

server: Misleading error message in httpsOnly mode #3722

Description

@U1F984

Starting the server with

isHttpsOnly = true
securePort = 8443

results in:

java.net.BindException: Address already in use: 8080
	at io.jooby.netty.NettyServer.start(NettyServer.java:183)
	at io.jooby.Jooby.start(Jooby.java:989)

due to the incorrect logic in

cause = new BindException("Address already in use: " + options.getPort());

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions