fix readme and hosts

This commit is contained in:
creeper123123321 2020-10-24 18:02:51 -03:00
parent 8237ec20ae
commit 01a2dc6ad6
2 changed files with 3 additions and 6 deletions

View File

@ -8,8 +8,5 @@ TODO: Online mode, protocol auto detection, transparent proxying?
Usage: Usage:
- ./gradlew clean run - ./gradlew clean run
- There is currently no config - Connection to private IP addresses are currently blocked
- Backend address is determined by virtual host
- VIAaaS currently must be used in a "viaaas" subdomain (may change in the future)
- Private IP addresses are currently blocked
- Connect to mc.example.com._v1_8.viaaas.localhost - Connect to mc.example.com._v1_8.viaaas.localhost

View File

@ -133,7 +133,7 @@ class VIAaaSAddress {
if (foundOptions) { if (foundOptions) {
realAddrPart = true realAddrPart = true
} }
} else if (parts.filterIndexed { a, _ -> a <= i } } else if (parts.filterIndexed { a, _ -> a >= i }
.joinToString(".").equals(viaHostName, ignoreCase = true)) { .joinToString(".").equals(viaHostName, ignoreCase = true)) {
foundDomain = true foundDomain = true
} }