diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-08-03 02:00:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-03 02:00:54 +0200 |
commit | 863a7fbedfb8d443a528e7475edb5de541499ce9 (patch) | |
tree | 7fa2f03bd46ea93f8d630c52218a4c22416d0969 /src-vue | |
parent | 1ac4198ec988ac49cb7740336df7a43bab3fbe52 (diff) | |
download | FlightCore-863a7fbedfb8d443a528e7475edb5de541499ce9.tar.gz FlightCore-863a7fbedfb8d443a528e7475edb5de541499ce9.zip |
feat: Add initial CGNAT check logic (#969)
Adds some logic that gets external IP and runs tracert to count the number of hops to said IP address. The goal is to have an automated way to check for CGNAT.
Diffstat (limited to 'src-vue')
-rw-r--r-- | src-vue/src/views/DeveloperView.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue index a08c73f3..19214157 100644 --- a/src-vue/src/views/DeveloperView.vue +++ b/src-vue/src/views/DeveloperView.vue @@ -65,6 +65,9 @@ <h3>Repair:</h3> + <el-button type="primary" @click="checkCgnat"> + Run tracert and collect hop count + </el-button> <el-button type="primary" @click="getInstalledMods"> Get installed mods @@ -330,6 +333,15 @@ export default defineComponent({ .then((message) => { showNotification(`NSProton Version`, message as string); }) .catch((error) => { showNotification(`Error`, error, "error"); }) }, + async checkCgnat() { + await invoke<string>("check_cgnat") + .then((message) => { + showNotification(message); + }) + .catch((error) => { + showErrorNotification(error); + }); + }, async copyReleaseNotesToClipboard() { navigator.clipboard.writeText(this.release_notes_text) .then(() => { |