tunnel server support brower arthas-output. #1553

This commit is contained in:
hengyunabc 2020-10-25 01:21:17 +08:00
parent 8114a977d3
commit f85ad03805
2 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,7 @@
<div class="col-inline"> <div class="col-inline">
<button title="connect" type="button" class="btn btn-info form-control" onclick="startConnect()">Connect</button> <button title="connect" type="button" class="btn btn-info form-control" onclick="startConnect()">Connect</button>
<button title="disconnect" type="button" class="btn btn-info form-control" onclick="disconnect()">Disconnect</button> <button title="disconnect" type="button" class="btn btn-info form-control" onclick="disconnect()">Disconnect</button>
<a id="arthasOutputA" target="_blank" href="arthas-output/" class="btn btn-info" role="button" onclick="updateArthasOutputLink()">Arthas Output</a>
</div> </div>
</form> </form>

View File

@ -167,6 +167,10 @@ function disconnect () {
} }
} }
function updateArthasOutputLink() {
$('#arthasOutputA').prop("href", "proxy/" + $('#agentId').val() + "/arthas-output/")
}
/** full screen show **/ /** full screen show **/
function xtermFullScreen () { function xtermFullScreen () {
var ele = document.getElementById('terminal-card'); var ele = document.getElementById('terminal-card');