Use port number from config file (fixes regression)

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj 2021-04-19 15:07:12 +05:30
parent 46012b2ce3
commit d2ef8c5259

View File

@ -12,7 +12,7 @@ import org.limium.picoserve.Server.StringResponse
class Server(port: Int) { class Server(port: Int) {
val server: picoserve.Server = picoserve.Server.builder() val server: picoserve.Server = picoserve.Server.builder()
.port(8888) .port(port)
.backlog(32) .backlog(32)
.POST("/v1/captcha", (request) => { .POST("/v1/captcha", (request) => {
val json = parse(request.getBodyString()) val json = parse(request.getBodyString())