File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -707,10 +707,20 @@ var HFTServer = function(options, startedCallback) {
707
707
} ) ;
708
708
} ;
709
709
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
+
710
718
app . get ( / ^ \/ g a m e s \/ ( .* ?) \/ / , sendGameRequestedFile ) ;
711
719
app . get ( / ^ \/ e n t e r - n a m e .h t m l / , sendTemplatedFile ) ;
712
720
app . use ( / ^ \/ a p i \/ v 0 \/ i n s t a l l \/ / , busboy ( ) ) ;
713
721
app . post ( / ^ \/ a p i \/ v 0 \/ i n s t a l l \/ / , installUploadedFile ) ;
722
+ app . use ( / ^ \/ a p i \/ i n f o r m 2 / , busboy ( ) ) ;
723
+ app . post ( / ^ \/ a p i \/ i n f o r m 2 / , fakeHFTSitePing ) ;
714
724
app . use ( / ^ \/ a p i \/ v 0 \/ u p l o a d F i l e \/ / , busboy ( ) ) ;
715
725
app . post ( / ^ \/ a p i \/ v 0 \/ u p l o a d F i l e \/ / , addUploadedFile ) ;
716
726
app . get ( / .* / , sendSystemRequestedFile ) ;
You can’t perform that action at this time.
0 commit comments