Openwrt TTYD luci页面端口修改

打开/usr/lib/lua/luci/view/terminal

<%+header%>
<div class="cbi-map">
        <h2 name="content"><%=translate("TTYD Terminal")%></h2>
        <iframe id="terminal" style="width: 100%; min-height: 500px; border: none; border-radius: 3px;"></iframe>
</div>
<script type="text/javascript">
        document.getElementById("terminal").src = window.location.protocol + "//" + window.location.hostname + ":7681";
        document.getElementById("terminal").height = document.documentElement.clientHeight;
        window.onresize = function(){
            document.getElementById("terminal").height = document.documentElement.clientHeight;
        }
</script>
<%+footer%>

修改其中的端口7681部分即可。

发表回复

相关