diff --git a/README.md b/README.md index a6bdf57..50625ea 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/static/servers.jst b/static/servers.jst index f7663b0..551fd0f 100644 --- a/static/servers.jst +++ b/static/servers.jst @@ -24,11 +24,11 @@ {{? !master.no_ping}}Ping, Lag{{?}} + {{ 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;}} {{? !master.no_address}}