forked from fatedier/frp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show tcpmux proxies on the frps dashboard (fatedier#4152)
- Loading branch information
Showing
11 changed files
with
128 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### Features | ||
|
||
* Show tcpmux proxies on the frps dashboard. | ||
|
||
### Fixes | ||
|
||
* When an HTTP proxy request times out, it returns 504 instead of 404 now. |
32 changes: 16 additions & 16 deletions
32
assets/frps/static/index-Q42Pu2_S.js → assets/frps/static/index-82-40HIG.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<ProxyView :proxies="proxies" proxyType="tcpmux" @refresh="fetchData" /> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
import { TCPMuxProxy } from '../utils/proxy.js' | ||
import ProxyView from './ProxyView.vue' | ||
let proxies = ref<TCPMuxProxy[]>([]) | ||
const fetchData = () => { | ||
let tcpmuxHTTPConnectPort: number | ||
let subdomainHost: string | ||
fetch('../api/serverinfo', { credentials: 'include' }) | ||
.then((res) => { | ||
return res.json() | ||
}) | ||
.then((json) => { | ||
tcpmuxHTTPConnectPort = json.tcpmuxHTTPConnectPort | ||
subdomainHost = json.subdomainHost | ||
fetch('../api/proxy/tcpmux', { credentials: 'include' }) | ||
.then((res) => { | ||
return res.json() | ||
}) | ||
.then((json) => { | ||
proxies.value = [] | ||
for (let proxyStats of json.proxies) { | ||
proxies.value.push(new TCPMuxProxy(proxyStats, tcpmuxHTTPConnectPort, subdomainHost)) | ||
} | ||
}) | ||
}) | ||
} | ||
fetchData() | ||
</script> | ||
|
||
<style></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters