Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MTProxy2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
MTProxy2
Commits
febe7c9e
Commit
febe7c9e
authored
Jul 09, 2019
by
levlam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve logging.
parent
d3479a5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
net-tcp-rpc-ext-server.c
net/net-tcp-rpc-ext-server.c
+5
-5
No files found.
net/net-tcp-rpc-ext-server.c
View file @
febe7c9e
...
...
@@ -755,7 +755,7 @@ static int is_allowed_timestamp (int timestamp) {
if
(
timestamp
>
now
+
3
)
{
// do not allow timestamps in the future
// after time synchronization client should always have time in the past
vkprintf
(
1
,
"Disallow request with timestamp %d from the future
\n
"
,
timestamp
);
vkprintf
(
1
,
"Disallow request with timestamp %d from the future
, now is %d
\n
"
,
timestamp
,
now
);
return
0
;
}
...
...
@@ -815,7 +815,7 @@ int tcp_rpcs_compact_parse_execute (connection_job_t C) {
assert
(
rwm_fetch_lookup
(
&
c
->
in
,
&
packet_len
,
4
)
==
4
);
if
(
D
->
in_packet_num
==
-
3
)
{
vkprintf
(
1
,
"trying to determine
connection type
\n
"
);
vkprintf
(
1
,
"trying to determine
type of connection from %s:%d
\n
"
,
show_remote_ip
(
C
),
c
->
remote_port
);
#if __ALLOW_UNOBFS__
if
((
packet_len
&
0xff
)
==
0xef
)
{
D
->
flags
|=
RPC_F_COMPACT
;
...
...
@@ -853,7 +853,7 @@ int tcp_rpcs_compact_parse_execute (connection_job_t C) {
return
11
-
len
;
}
vkprintf
(
1
,
"Established TLS connection
\n
"
);
vkprintf
(
1
,
"Established TLS connection
from %s:%d
\n
"
,
show_remote_ip
(
C
),
c
->
remote_port
);
unsigned
char
header
[
11
];
assert
(
rwm_fetch_lookup
(
&
c
->
in
,
header
,
11
)
==
11
);
if
(
memcmp
(
header
,
"
\x14\x03\x03\x00\x01\x01\x17\x03\x03
"
,
9
)
!=
0
)
{
...
...
@@ -900,7 +900,7 @@ int tcp_rpcs_compact_parse_execute (connection_job_t C) {
return
(
-
1
<<
28
);
}
vkprintf
(
1
,
"TLS type with domain %s
\n
"
,
info
->
domain
);
vkprintf
(
1
,
"TLS type with domain %s
from %s:%d
\n
"
,
info
->
domain
,
show_remote_ip
(
C
),
c
->
remote_port
);
if
(
len
>
min_len
)
{
vkprintf
(
1
,
"Too much data in ClientHello, receive %d instead of %d
\n
"
,
len
,
min_len
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment