@@ -67,7 +67,7 @@ t_authcode
67
67
auth_server_request (t_authresponse * authresponse , const char * request_type , const char * ip , const char * mac ,
68
68
const char * token , unsigned long long int incoming , unsigned long long int outgoing , unsigned long long int incoming_delta , unsigned long long int outgoing_delta )
69
69
{
70
- s_config * config = config_get_config ();
70
+ s_config * config = config_get_config ();
71
71
int sockfd ;
72
72
char buf [MAX_BUF ];
73
73
char * tmp ;
@@ -87,7 +87,7 @@ auth_server_request(t_authresponse * authresponse, const char *request_type, con
87
87
memset (buf , 0 , sizeof (buf ));
88
88
safe_token = httpdUrlEncode (token );
89
89
if (config -> deltatraffic ) {
90
- snprintf (buf , (sizeof (buf ) - 1 ),
90
+ snprintf (buf , (sizeof (buf ) - 1 ),
91
91
"GET %s%sstage=%s&ip=%s&mac=%s&token=%s&incoming=%llu&outgoing=%llu&incomingdelta=%llu&outgoingdelta=%llu&gw_id=%s HTTP/1.0\r\n"
92
92
"User-Agent: WiFiDog %s\r\n"
93
93
"Host: %s\r\n"
@@ -102,7 +102,7 @@ auth_server_request(t_authresponse * authresponse, const char *request_type, con
102
102
outgoing_delta ,
103
103
config -> gw_id , VERSION , auth_server -> authserv_hostname );
104
104
} else {
105
- snprintf (buf , (sizeof (buf ) - 1 ),
105
+ snprintf (buf , (sizeof (buf ) - 1 ),
106
106
"GET %s%sstage=%s&ip=%s&mac=%s&token=%s&incoming=%llu&outgoing=%llu&gw_id=%s HTTP/1.0\r\n"
107
107
"User-Agent: WiFiDog %s\r\n"
108
108
"Host: %s\r\n"
@@ -112,7 +112,7 @@ auth_server_request(t_authresponse * authresponse, const char *request_type, con
112
112
request_type ,
113
113
ip ,
114
114
mac , safe_token , incoming , outgoing , config -> gw_id , VERSION , auth_server -> authserv_hostname );
115
- }
115
+ }
116
116
free (safe_token );
117
117
118
118
char * res ;
0 commit comments