mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 07:08:10 +00:00
policy: convert tls_domain to lowercase
This commit is contained in:
parent
ae618ea478
commit
2a5d64638e
2 changed files with 2 additions and 2 deletions
|
|
@ -333,7 +333,7 @@ Where:
|
|||
- `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_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]`
|
||||
- `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
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ val(Policy, Vars) when is_atom(Policy);
|
|||
convert(port_name, PortName) ->
|
||||
PortName;
|
||||
convert(tls_domain, Domain) when is_binary(Domain) ->
|
||||
Domain;
|
||||
string:casefold(Domain);
|
||||
convert(tls_domain, DomainStr) when is_list(DomainStr) ->
|
||||
convert(tls_domain, list_to_binary(DomainStr));
|
||||
convert(client_ipv4, Ip0) ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue