Improve behaviour of protocol filtering
This commit is contained in:
@@ -23,7 +23,7 @@ Then install doT.js and its dependencies:
|
||||
And finally compile the template:
|
||||
|
||||
$ cd static
|
||||
$ ~/node_modules/dot/bin/dot-packer -s . -d .
|
||||
$ ~/node_modules/dot/bin/dot-packer -s .
|
||||
|
||||
You can now serve the webpage by copying the files in static/ to your web root, or by [starting the master server](#setting-up-the-server).
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
{{? !master.no_ping}}<th>Ping, Lag</th>{{?}}
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
{{ var tmp = master.proto_range ? JSON.parse(master.proto_range) : null;}}
|
||||
{{~it.list :server:index}}
|
||||
{{ if (master.limit && index + 1 > master.limit) break;}}
|
||||
{{ if (master.min_clients && server.clients < master.min_clients) continue;}}
|
||||
{{ var tmp = master.proto_range ? JSON.parse(master.proto_range) : null;}}
|
||||
{{ if (tmp && (server.proto_min < tmp[0] || server.proto_max > tmp[1])) continue;}}
|
||||
{{ if (tmp && (tmp[0] > server.proto_max || tmp[1] < server.proto_min)) continue;}}
|
||||
<tr>
|
||||
{{? !master.no_address}}
|
||||
<td class="address">
|
||||
|
||||
Reference in New Issue
Block a user