Skip to content

Commit

Permalink
Added windows nat restart
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentmoheshwar committed Apr 25, 2023
1 parent 182b955 commit 80927b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"scannow",
"tailwindcss",
"WINDIR",
"winnat",
"wsreset",
"wuauserv",
"wureset"
Expand Down
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,9 @@ def wureset():
os.system("net start CryptSvc")
os.system("net start msiserver")

@eel.expose
def restartWinNat():
os.system("net stop winnat && net start winnat")


eel.start("index.html")
3 changes: 3 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ <h2>Repair tools:</h2>
</button>
<button onclick="eel.wsreset();">Reset Microsoft Store</button>
<button onclick="eel.wureset();">Reset Windows Update</button>
<button onclick="eel.restartWinNat()">
Restart Windows NAT Service
</button>
</section>

<section>
Expand Down

0 comments on commit 80927b0

Please sign in to comment.