Only evaluate a decision for private addresses
@@ -10,6 +10,7 @@ from redis import StrictRedis
import numpy as np
from reader import sessionizer
+from featurizer import is_private
from model_utils import clean_session_dict
from classifier import Classifier
@@ -94,6 +95,7 @@ if __name__ == '__main__':
if source_ip is None:
source_ip = inferred_ip
+ if is_private(source_ip):
# Laad the model
if len(sys.argv) > 2:
model_path = sys.argv[2]
