Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
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
mtproto_proxy
Commits
2a5d6463
Unverified
Commit
2a5d6463
authored
Aug 26, 2019
by
Sergey Prokhorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
policy: convert tls_domain to lowercase
parent
ae618ea4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
mtp_policy.erl
src/mtp_policy.erl
+1
-1
No files found.
README.md
View file @
2a5d6463
...
@@ -333,7 +333,7 @@ Where:
...
@@ -333,7 +333,7 @@ Where:
-
`client_ipv6`
- client's IPv6 address; ignored on IPv4 ports!
-
`client_ipv6`
- client's IPv6 address; ignored on IPv4 ports!
-
`{client_ipv4_subnet, MASK}`
- client's IPv4 subnet; mask is from 8 to 32
-
`{client_ipv4_subnet, MASK}`
- client's IPv4 subnet; mask is from 8 to 32
-
`{client_ipv6_subnet, MASK}`
- client's IPv6 subnet; mask is from 32 to 128
-
`{client_ipv6_subnet, MASK}`
- client's IPv6 subnet; mask is from 32 to 128
-
`tls_domain`
- domain name from fake-TLS secret; ignored if connection with non-fake-TLS protocol
-
`tls_domain`
-
lowercase
domain name from fake-TLS secret; ignored if connection with non-fake-TLS protocol
-
`KEYS`
is a list of one or more
`KEY`
, eg,
`[port, tls_domain]`
-
`KEYS`
is a list of one or more
`KEY`
, eg,
`[port, tls_domain]`
-
`TABLE_NAME`
is free-form text name of special internal database table, eg,
`my_table`
.
-
`TABLE_NAME`
is free-form text name of special internal database table, eg,
`my_table`
.
Tables will be created automatically when proxy is started; data in tables is not preserved when proxy
Tables will be created automatically when proxy is started; data in tables is not preserved when proxy
...
...
src/mtp_policy.erl
View file @
2a5d6463
...
@@ -113,7 +113,7 @@ val(Policy, Vars) when is_atom(Policy);
...
@@ -113,7 +113,7 @@ val(Policy, Vars) when is_atom(Policy);
convert
(
port_name
,
PortName
)
->
convert
(
port_name
,
PortName
)
->
PortName
;
PortName
;
convert
(
tls_domain
,
Domain
)
when
is_binary
(
Domain
)
->
convert
(
tls_domain
,
Domain
)
when
is_binary
(
Domain
)
->
Domain
;
string
:
casefold
(
Domain
)
;
convert
(
tls_domain
,
DomainStr
)
when
is_list
(
DomainStr
)
->
convert
(
tls_domain
,
DomainStr
)
when
is_list
(
DomainStr
)
->
convert
(
tls_domain
,
list_to_binary
(
DomainStr
));
convert
(
tls_domain
,
list_to_binary
(
DomainStr
));
convert
(
client_ipv4
,
Ip0
)
->
convert
(
client_ipv4
,
Ip0
)
->
...
...
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