Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
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
tg
Commits
c72df608
Commit
c72df608
authored
Apr 23, 2015
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes
parent
6322b8e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
loop.c
loop.c
+11
-11
tgl
tgl
+1
-1
No files found.
loop.c
View file @
c72df608
...
...
@@ -435,24 +435,24 @@ void read_dc (int auth_file_fd, int id, unsigned ver) {
assert
(
read
(
auth_file_fd
,
auth_key
,
256
)
==
256
);
//bl_do_add_dc (id, ip, l, port, auth_key_id, auth_key);
bl_do_dc_option
(
TLS
,
id
,
2
,
"DC"
,
l
,
ip
,
port
);
bl_do_dc_option
(
TLS
,
id
,
"DC"
,
2
,
ip
,
l
,
port
);
bl_do_set_auth_key
(
TLS
,
id
,
auth_key
);
bl_do_dc_signed
(
TLS
,
id
);
}
void
empty_auth_file
(
void
)
{
if
(
TLS
->
test_mode
)
{
bl_do_dc_option
(
TLS
,
1
,
0
,
""
,
strlen
(
TG_SERVER_TEST_1
),
TG_SERVER_TEST_1
,
443
);
bl_do_dc_option
(
TLS
,
2
,
0
,
""
,
strlen
(
TG_SERVER_TEST_2
),
TG_SERVER_TEST_2
,
443
);
bl_do_dc_option
(
TLS
,
3
,
0
,
""
,
strlen
(
TG_SERVER_TEST_3
),
TG_SERVER_TEST_3
,
443
);
bl_do_set_working_dc
(
TLS
,
2
);
bl_do_dc_option
(
TLS
,
1
,
""
,
0
,
TG_SERVER_TEST_1
,
strlen
(
TG_SERVER_TEST_1
)
,
443
);
bl_do_dc_option
(
TLS
,
2
,
""
,
0
,
TG_SERVER_TEST_2
,
strlen
(
TG_SERVER_TEST_2
)
,
443
);
bl_do_dc_option
(
TLS
,
3
,
""
,
0
,
TG_SERVER_TEST_3
,
strlen
(
TG_SERVER_TEST_3
)
,
443
);
bl_do_set_working_dc
(
TLS
,
TG_SERVER_TEST_DEFAULT
);
}
else
{
bl_do_dc_option
(
TLS
,
1
,
0
,
""
,
strlen
(
TG_SERVER_1
),
TG_SERVER_1
,
443
);
bl_do_dc_option
(
TLS
,
2
,
0
,
""
,
strlen
(
TG_SERVER_2
),
TG_SERVER_2
,
443
);
bl_do_dc_option
(
TLS
,
3
,
0
,
""
,
strlen
(
TG_SERVER_3
),
TG_SERVER_3
,
443
);
bl_do_dc_option
(
TLS
,
4
,
0
,
""
,
strlen
(
TG_SERVER_4
),
TG_SERVER_4
,
443
);
bl_do_dc_option
(
TLS
,
5
,
0
,
""
,
strlen
(
TG_SERVER_5
),
TG_SERVER_5
,
443
);
bl_do_set_working_dc
(
TLS
,
4
);
bl_do_dc_option
(
TLS
,
1
,
""
,
0
,
TG_SERVER_1
,
strlen
(
TG_SERVER_1
)
,
443
);
bl_do_dc_option
(
TLS
,
2
,
""
,
0
,
TG_SERVER_2
,
strlen
(
TG_SERVER_2
)
,
443
);
bl_do_dc_option
(
TLS
,
3
,
""
,
0
,
TG_SERVER_3
,
strlen
(
TG_SERVER_3
)
,
443
);
bl_do_dc_option
(
TLS
,
4
,
""
,
0
,
TG_SERVER_4
,
strlen
(
TG_SERVER_4
)
,
443
);
bl_do_dc_option
(
TLS
,
5
,
""
,
0
,
TG_SERVER_5
,
strlen
(
TG_SERVER_5
)
,
443
);
bl_do_set_working_dc
(
TLS
,
TG_SERVER_DEFAULT
);
}
}
...
...
tgl
@
243dfe59
Subproject commit
c23d25fc3a53f9aaff6d34f9f5f00ef3dbccb22e
Subproject commit
243dfe599abf4c84f4b953fe4f61525dca127921
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