Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve behaviour of protocol filtering
  • Loading branch information
sfan5 committed Mar 8, 2020
1 parent ddcd98a commit e99ecd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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).

Expand Down
4 changes: 2 additions & 2 deletions static/servers.jst
Expand Up @@ -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">
Expand Down

0 comments on commit e99ecd6

Please sign in to comment.