Skip to content

Commit

Permalink
Enable by default fpv3 & hkp in advertised features
Browse files Browse the repository at this point in the history
Add the -f/--features argument to alter default features
  • Loading branch information
ckdo committed Jul 19, 2020
1 parent ef5fd48 commit 68a089f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ap2-receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# FEATURES = 0x30040780a00
# FEATURES = 0x8030040780a00 | (1 << 27)

# FEATURES = 0x1c340405fca00
FEATURES = 0x1c340405fca00

DEVICE_ID = None
IPV4 = None
Expand Down Expand Up @@ -704,13 +704,20 @@ def upgrade_to_encrypted(self, client_address, shared_key):
parser.add_argument("-m", "--mdns", required=True, help="mDNS name to announce")
parser.add_argument("-n", "--netiface", required=True, help="Network interface to bind to")
parser.add_argument("-nv", "--no-volume-management", required=False, help="Disable volume management", action='store_true')
parser.add_argument("-f", "--features", required=False, help="Features")

args = parser.parse_args()

try:
IFEN = args.netiface
ifen = ni.ifaddresses(IFEN)
DISABLE_VM = args.no_volume_management
if args.features:
try:
FEATURES = int(args.features, 16)
except Exception:
print("[!] Error with feature arg - hex format required")
exit(-1)
except Exception:
print("[!] Network interface not found")
exit(-1)
Expand Down

0 comments on commit 68a089f

Please sign in to comment.