Commit 12e539c5 authored by Kento HASEGAWA's avatar Kento HASEGAWA

Don't run as a general user (#5 fixed)

parent 55491c32
......@@ -106,6 +106,11 @@ def before_request():
if __name__ == "__main__":
# Check if this script runs as "root" user
if os.getuid() != 0:
raise Exception("Must run as root")
sys.exit(1)
parser = argparse.ArgumentParser(description="PYNQ client.")
parser.add_argument("-p", "--port", action="store", type=int, default=5000, help="Port")
parser.add_argument("-H", "--host", action="store", type=str, default="192.168.4.1:5000", help="Host address")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment