Revision eb5122a3 peerstreamer-ng.c

View differences:

peerstreamer-ng.c
140 140
struct mg_mgr * launch_http_task(struct context *c)
141 141
{
142 142
	struct mg_connection *nc;
143
	struct mg_bind_opts bind_opts;
143 144

  
144
	nc = mg_bind(c->mongoose_srv, c->http_port, ev_handler);
145
	memset(&bind_opts, 0, sizeof(bind_opts));
146
	bind_opts.ssl_cert = "Public/server.pem";
147
	bind_opts.ssl_key = "Public/key.pem";
148
	nc = mg_bind_opt(c->mongoose_srv, c->http_port, ev_handler, bind_opts);
145 149
	nc->user_data = c;
146 150
	if (nc == NULL) {
147 151
		fprintf(stderr, "Error starting server on port %s\n", c->http_port);

Also available in: Unified diff