diff --git a/README.md b/README.md index 6d7db35..3112c89 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/mtp_policy.erl b/src/mtp_policy.erl index 258f08f..b701294 100644 --- a/src/mtp_policy.erl +++ b/src/mtp_policy.erl @@ -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) ->