Skip to content

Commit 01876f7

Browse files
committed
add fakeHFTSitePing to shut up hftsite code
1 parent 972080a commit 01876f7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

server/hft-server.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,20 @@ var HFTServer = function(options, startedCallback) {
707707
});
708708
};
709709

710+
// if we're in DNS mode we'll get messages from games trying to
711+
// inform happyfuntimes.net
712+
function fakeHFTSitePing(req, res) {
713+
res.json({
714+
ip: "0.0.0.0",
715+
});
716+
}
717+
710718
app.get(/^\/games\/(.*?)\//, sendGameRequestedFile);
711719
app.get(/^\/enter-name.html/, sendTemplatedFile);
712720
app.use(/^\/api\/v0\/install\//, busboy());
713721
app.post(/^\/api\/v0\/install\//, installUploadedFile);
722+
app.use(/^\/api\/inform2/, busboy());
723+
app.post(/^\/api\/inform2/, fakeHFTSitePing);
714724
app.use(/^\/api\/v0\/uploadFile\//, busboy());
715725
app.post(/^\/api\/v0\/uploadFile\//, addUploadedFile);
716726
app.get(/.*/, sendSystemRequestedFile);

0 commit comments

Comments
 (0)