add .gitattributes, default deny foreign addresses
This commit is contained in:
parent
98157bf1bf
commit
2696fb30c2
30
.gitattributes
vendored
Normal file
30
.gitattributes
vendored
Normal 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).
|
@ -13,7 +13,7 @@ import re
|
|||||||
ROUTE_TOR = True
|
ROUTE_TOR = True
|
||||||
TOR_PATH = ***REMOVED***
|
TOR_PATH = ***REMOVED***
|
||||||
PORT_NUMBER=80
|
PORT_NUMBER=80
|
||||||
ALLOW_FOREIGN_ADDRESSES=True
|
ALLOW_FOREIGN_ADDRESSES=False
|
||||||
|
|
||||||
BAN_FILE = "banned_addresses.txt"
|
BAN_FILE = "banned_addresses.txt"
|
||||||
with open(BAN_FILE, 'r') as f:
|
with open(BAN_FILE, 'r') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user