@@ -25,7 +25,7 @@ static char *ngx_stream_core_listen(ngx_conf_t *cf, ngx_command_t *cmd,
2525static char * ngx_stream_core_resolver (ngx_conf_t * cf , ngx_command_t * cmd ,
2626 void * conf );
2727
28- #if (NGX_STREAM_SNI )
28+ #if (T_NGX_STREAM_SNI )
2929static char * ngx_stream_core_server_name (ngx_conf_t * cf , ngx_command_t * cmd ,
3030 void * conf );
3131#endif
@@ -109,7 +109,7 @@ static ngx_command_t ngx_stream_core_commands[] = {
109109 offsetof(ngx_stream_core_srv_conf_t , preread_timeout ),
110110 NULL },
111111
112- #if (NGX_STREAM_SNI )
112+ #if (T_NGX_STREAM_SNI )
113113 { ngx_string ("server_name" ),
114114 NGX_STREAM_SRV_CONF |NGX_CONF_1MORE ,
115115 ngx_stream_core_server_name ,
@@ -398,7 +398,7 @@ ngx_stream_core_create_main_conf(ngx_conf_t *cf)
398398 cmcf -> variables_hash_max_size = NGX_CONF_UNSET_UINT ;
399399 cmcf -> variables_hash_bucket_size = NGX_CONF_UNSET_UINT ;
400400
401- #if (NGX_STREAM_SNI )
401+ #if (T_NGX_STREAM_SNI )
402402 cmcf -> server_names_hash_max_size = NGX_CONF_UNSET_UINT ;
403403 cmcf -> server_names_hash_bucket_size = NGX_CONF_UNSET_UINT ;
404404#endif
@@ -415,7 +415,7 @@ ngx_stream_core_init_main_conf(ngx_conf_t *cf, void *conf)
415415 ngx_conf_init_uint_value (cmcf -> variables_hash_max_size , 1024 );
416416 ngx_conf_init_uint_value (cmcf -> variables_hash_bucket_size , 64 );
417417
418- #if (NGX_STREAM_SNI )
418+ #if (T_NGX_STREAM_SNI )
419419 ngx_conf_init_uint_value (cmcf -> server_names_hash_max_size , 512 );
420420 ngx_conf_init_uint_value (cmcf -> server_names_hash_bucket_size ,
421421 ngx_cacheline_size );
@@ -457,7 +457,7 @@ ngx_stream_core_create_srv_conf(ngx_conf_t *cf)
457457 cscf -> preread_buffer_size = NGX_CONF_UNSET_SIZE ;
458458 cscf -> preread_timeout = NGX_CONF_UNSET_MSEC ;
459459
460- #if (NGX_STREAM_SNI )
460+ #if (T_NGX_STREAM_SNI )
461461 if (ngx_array_init (& cscf -> server_names , cf -> temp_pool , 4 ,
462462 sizeof (ngx_stream_server_name_t ))
463463 != NGX_OK )
@@ -475,7 +475,7 @@ ngx_stream_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
475475{
476476 ngx_stream_core_srv_conf_t * prev = parent ;
477477 ngx_stream_core_srv_conf_t * conf = child ;
478- #if (NGX_STREAM_SNI )
478+ #if (T_NGX_STREAM_SNI )
479479 ngx_str_t name ;
480480 ngx_stream_server_name_t * sn ;
481481#endif
@@ -528,7 +528,7 @@ ngx_stream_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
528528 ngx_conf_merge_msec_value (conf -> preread_timeout ,
529529 prev -> preread_timeout , 30000 );
530530
531- #if (NGX_STREAM_SNI )
531+ #if (T_NGX_STREAM_SNI )
532532 if (conf -> server_names .nelts == 0 ) {
533533 /* the array has 4 empty preallocated elements, so push cannot fail */
534534 sn = ngx_array_push (& conf -> server_names );
@@ -705,7 +705,7 @@ ngx_stream_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
705705 }
706706#endif
707707
708- #if (NGX_STREAM_SNI )
708+ #if (T_NGX_STREAM_SNI )
709709 if (ngx_strcmp (value [i ].data , "default_server" ) == 0
710710 || ngx_strcmp (value [i ].data , "default" ) == 0 ) {
711711
@@ -957,7 +957,7 @@ ngx_stream_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
957957 ls [n ].addr_text = u .addrs [n ].name ;
958958 ls [n ].wildcard = ngx_inet_wildcard (ls [n ].sockaddr );
959959
960- #if (NGX_STREAM_SNI )
960+ #if (T_NGX_STREAM_SNI )
961961 continue ;
962962#endif
963963
@@ -1005,7 +1005,7 @@ ngx_stream_core_resolver(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
10051005 return NGX_CONF_OK ;
10061006}
10071007
1008- #if (NGX_STREAM_SNI )
1008+ #if (T_NGX_STREAM_SNI )
10091009static char *
10101010ngx_stream_core_server_name (ngx_conf_t * cf , ngx_command_t * cmd , void * conf )
10111011{
0 commit comments