File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ typedef struct {
1515 ngx_str_t ed ;
1616} ngx_http_execute_loc_conf_t ;
1717
18+ typedef struct {
19+ char * command ;
20+ } ngx_http_command_conf_t ;
21+
1822static char * ngx_http_execute (ngx_conf_t * cf , ngx_command_t * cmd , void * conf );
1923static void * ngx_http_execute_create_loc_conf (ngx_conf_t * cf );
2024static char * ngx_http_execute_merge_loc_conf (ngx_conf_t * cf , void * parent ,
@@ -110,7 +114,11 @@ static char *
110114ngx_http_execute (ngx_conf_t * cf , ngx_command_t * cmd , void * conf ) {
111115 ngx_http_core_loc_conf_t * clcf ;
112116 ngx_str_t * value ;
113-
117+ ngx_http_command_conf_t * com = conf ;
118+
119+ if (com -> command ) {
120+ return "is duplicate" ;
121+ }
114122 value = cf -> args -> elts ;
115123 if (ngx_strcasecmp (value [1 ].data , (u_char * ) "on" ) != 0 ) {
116124 return NGX_CONF_OK ;
You can’t perform that action at this time.
0 commit comments