add .gitattributes, default deny foreign addresses

This commit is contained in:
James Taylor 2018-07-01 21:34:49 -07:00
parent 98157bf1bf
commit 2696fb30c2
2 changed files with 171 additions and 141 deletions

30
.gitattributes vendored Normal file
View File

@ -0,0 +1,30 @@
# Basic .gitattributes for a python repo.
# Source files
# ============
*.pxd text
*.py text
*.py3 text
*.pyw text
*.pyx text
*.html text
*.xml text
*.xhtml text
*.htm text
*.css text
*.txt text
# Binary files
# ============
*.db binary
*.p binary
*.pkl binary
*.pyc binary
*.pyd binary
*.pyo binary
# Note: .db, .p, and .pkl files are associated
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).

View File

@ -13,7 +13,7 @@ import re
ROUTE_TOR = True
TOR_PATH = ***REMOVED***
PORT_NUMBER=80
ALLOW_FOREIGN_ADDRESSES=True
ALLOW_FOREIGN_ADDRESSES=False
BAN_FILE = "banned_addresses.txt"
with open(BAN_FILE, 'r') as f: