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
ce993381
Commit
ce993381
authored
Sep 11, 2019
by
levlam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to use workers with TLS-transport.
parent
58db9150
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
mtproto-proxy.c
mtproto/mtproto-proxy.c
+3
-4
No files found.
mtproto/mtproto-proxy.c
View file @
ce993381
...
@@ -2244,7 +2244,7 @@ void mtfront_prepare_parse_options (void) {
...
@@ -2244,7 +2244,7 @@ void mtfront_prepare_parse_options (void) {
parse_option
(
"window-clamp"
,
required_argument
,
0
,
'W'
,
"sets window clamp for client TCP connections"
);
parse_option
(
"window-clamp"
,
required_argument
,
0
,
'W'
,
"sets window clamp for client TCP connections"
);
parse_option
(
"http-ports"
,
required_argument
,
0
,
'H'
,
"comma-separated list of client (HTTP) ports to listen"
);
parse_option
(
"http-ports"
,
required_argument
,
0
,
'H'
,
"comma-separated list of client (HTTP) ports to listen"
);
// parse_option ("outbound-connections-ps", required_argument, 0, 'o', "limits creation rate of outbound connections to mtproto-servers (default %d)", DEFAULT_OUTBOUND_CONNECTION_CREATION_RATE);
// parse_option ("outbound-connections-ps", required_argument, 0, 'o', "limits creation rate of outbound connections to mtproto-servers (default %d)", DEFAULT_OUTBOUND_CONNECTION_CREATION_RATE);
parse_option
(
"slaves"
,
required_argument
,
0
,
'M'
,
"spawn several slave workers; not
supported for TLS-transport mode
"
);
parse_option
(
"slaves"
,
required_argument
,
0
,
'M'
,
"spawn several slave workers; not
recommended for TLS-transport mode for better replay protection
"
);
parse_option
(
"ping-interval"
,
required_argument
,
0
,
'T'
,
"sets ping interval in second for local TCP connections (default %.3lf)"
,
PING_INTERVAL
);
parse_option
(
"ping-interval"
,
required_argument
,
0
,
'T'
,
"sets ping interval in second for local TCP connections (default %.3lf)"
,
PING_INTERVAL
);
}
}
...
@@ -2274,11 +2274,10 @@ void mtfront_pre_init (void) {
...
@@ -2274,11 +2274,10 @@ void mtfront_pre_init (void) {
tcp_rpc_init_proxy_domains
();
tcp_rpc_init_proxy_domains
();
if
(
workers
)
{
if
(
workers
)
{
kprintf
(
"Workers can't be used when a domain for TLS transport is specified"
);
kprintf
(
"It is recommended to not use workers with TLS-transport"
);
workers
=
0
;
}
}
if
(
secret_count
==
0
)
{
if
(
secret_count
==
0
)
{
kprintf
(
"You must specify at least one mtproto-secret to use when using TLS
transport"
);
kprintf
(
"You must specify at least one mtproto-secret to use when using TLS
-
transport"
);
exit
(
2
);
exit
(
2
);
}
}
}
}
...
...
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