#!/usr/bin/env python

from IPy import IP
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("google.com",80))
myip = s.getsockname()[0]
s.close()

if myip in IP('10.251.24.0/21'):
    # we're at Mozilla SF
    exit(0)
else:
    exit(1)
