Commit Diff


commit - fccfa8716557acd9164cfa990e6df9ff68dce4b7
commit + 2695b856e8391621f150c83c6ca290d79496560f
blob - a2d1e823cd3a000c5ad1a4a61da96ecebc8a9d63
blob + e209e1eef4c978c323777d1cc1e8a9fa355d73cf
--- parse.y
+++ parse.y
@@ -271,6 +271,8 @@ listen		: LISTEN { listener = listen_new(); }
 		listen_opts {
 			if (listener->auth_table == NULL)
 				yyerror("missing auth table");
+			if (!(listener->flags & L_TLS))
+				yyerror("can't define a non-tls listener");
 
 			listener = NULL;
 		};