Skip to content

Commit de76901

Browse files
committed
fix issue on argparser in fake access point tutorial
1 parent a73567d commit de76901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scapy/fake-access-point/fake_access_point.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def send_beacon(ssid, mac, infinite=True):
3434

3535
parser = argparse.ArgumentParser(description="Fake Access Point Generator")
3636
parser.add_argument("interface", default="wlan0mon", help="The interface to send beacon frames with, must be in monitor mode")
37-
parser.add_argument("-n", "--access-points", dest="n_ap", help="Number of access points to be generated")
37+
parser.add_argument("-n", "--access-points", type=int, dest="n_ap", help="Number of access points to be generated")
3838
args = parser.parse_args()
3939
n_ap = args.n_ap
4040
iface = args.interface

0 commit comments

Comments
 (0)