Use short alphanumeric H5 subdomain prefix
This commit is contained in:
@@ -114,10 +114,11 @@ class AppConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static String _randomWildcardLabel() {
|
static String _randomWildcardLabel() {
|
||||||
final digits = StringBuffer(_random.nextInt(9) + 1);
|
const alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
||||||
for (var index = 1; index < 16; index += 1) {
|
final label = StringBuffer();
|
||||||
digits.write(_random.nextInt(10));
|
for (var index = 0; index < 6; index += 1) {
|
||||||
|
label.write(alphabet[_random.nextInt(alphabet.length)]);
|
||||||
}
|
}
|
||||||
return digits.toString();
|
return label.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user