HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/add-port-transmit-legacy.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,o,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",l=n.toStringTag||"@@toStringTag";function u(e,n,a,l){var u=n&&n.prototype instanceof i?n:i,d=Object.create(u.prototype);return t(d,"_invoke",function(e,t,n){var a,l,u,i=0,d=n||[],s=!1,p={p:0,n:0,v:r,a:f,f:f.bind(r,4),d:function(e,t){return a=e,l=0,u=r,p.n=t,c}};function f(e,t){for(l=e,u=t,o=0;!s&&i&&!n&&o<d.length;o++){var n,a=d[o],f=p.p,m=a[2];e>3?(n=m===t)&&(u=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=r):a[0]<=f&&((n=e<2&&f<a[1])?(l=0,p.v=t,p.n=a[1]):f<m&&(n=e<3||a[0]>t||t>m)&&(a[4]=e,a[5]=t,p.n=m,l=0))}if(n||e>1)return c;throw s=!0,t}return function(n,d,m){if(i>1)throw TypeError("Generator is already running");for(s&&1===d&&f(d,m),l=d,u=m;(o=l<2?r:u)||!s;){a||(l?l<3?(l>1&&(p.n=-1),f(l,u)):p.n=u:p.v=u);try{if(i=2,a){if(l||(n="next"),o=a[n]){if(!(o=o.call(a,u)))throw TypeError("iterator result is not an object");if(!o.done)return o;u=o.value,l<2&&(l=0)}else 1===l&&(o=a.return)&&o.call(a),l<2&&(u=TypeError("The iterator does not provide a '"+n+"' method"),l=1);a=r}else if((o=(s=p.n<0)?u:e.call(t,p))!==c)break}catch(o){a=r,l=1,u=o}finally{i=1}}return{value:o,done:s}}}(e,a,l),!0),d}var c={};function i(){}function d(){}function s(){}o=Object.getPrototypeOf;var p=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),f=s.prototype=i.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,t(e,l,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=s,t(f,"constructor",s),t(s,"constructor",d),d.displayName="GeneratorFunction",t(s,l,"GeneratorFunction"),t(f),t(f,l,"Generator"),t(f,a,function(){return this}),t(f,"toString",function(){return"[object Generator]"}),(e=function(){return{w:u,m:m}})()}function t(e,r,o,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,r,o,n){function l(r,o){t(e,r,function(e){return this._invoke(r,o,e)})}r?a?a(e,r,{value:o,enumerable:!n,configurable:!n,writable:!n}):e[r]=o:(l("next",0),l("throw",1),l("return",2))},t(e,r,o,n)}function r(e,t,r,o,n,a,l){try{var u=e[a](l),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(o,n)}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./firewall-legacy.js?v=1777008528","./useMethod-legacy7.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./useStore-legacy8.js?v=1777008528"],function(t,o){"use strict";var n,a,l,u,c,i,d,s,p,f,m,_,v,b,y,g,h,P,w,j;return{setters:[function(e){n=e.c,a=e.r,l=e.o,u=e.j,c=e.C,i=e.v,d=e.e,s=e.p,p=e.ad,f=e.T,m=e.ab},function(e){_=e.e8,v=e.k,b=e.W,y=e.cO,g=e.cP},function(e){h=e.a6,P=e.j},function(e){w=e.d,j=e.e},null,null,null,null,null],execute:function(){t("default",n({__name:"add-port-transmit",props:{compData:{default:function(){}}},setup:function(t,o){var n=o.expose,T=t,D=a(),S=a({protocol:T.compData.Protocol?T.compData.Protocol.toLowerCase():"tcp",s_ports:T.compData.S_Port?T.compData.S_Port:"",d_ports:T.compData.T_Port?T.compData.T_Port:"",d_address:T.compData.T_Address?T.compData.T_Address:"",id:T.compData.id?T.compData.id:"",brief:T.compData.brief?T.compData.brief:""}),V=[{content:"如果是本机端口转发,目标IP为:127.0.0.1"},{content:"如果目标IP不填写,默认则为本机端口转发!"}],O=[{label:"TCP",value:"tcp"},{label:"UDP",value:"udp"}],x=a(!!T.compData.id),A={s_ports:[{validator:function(e,t,r){t.length>0&&(_(t)||r(new Error("端口格式错误,可用范围:1-65535")),r()),r(new Error("请输入源端口"))},trigger:["blur","change"],required:!0}],d_ports:[{validator:function(e,t,r){t.length>0&&(_(t)||r(new Error("端口格式错误,可用范围:1-65535")),r()),r(new Error("请输入目标端口"))},trigger:["blur","change"],required:!0}]},E=function(){var t,o=(t=e().m(function t(r){var o;return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,D.value.validate();case 1:return o={operation:"add",protocol:S.value.protocol,S_Port:S.value.s_ports,T_Port:S.value.d_ports,T_Address:S.value.d_address,brief:S.value.brief,id:S.value.id},x.value||delete o.id,""==o.T_Address&&(o.T_Address="127.0.0.1"),e.n=2,v({loading:"正在设置端口转发,请稍后...",request:x.value?h({new_data:JSON.stringify(o),old_data:JSON.stringify(T.compData)}):P(o),message:!0});case 2:T.compData.refreshFn(),r(),w(),j();case 3:return e.a(2)}},t)}),function(){var e=this,o=arguments;return new Promise(function(n,a){var l=t.apply(e,o);function u(e){r(l,n,a,u,c,"next",e)}function c(e){r(l,n,a,u,c,"throw",e)}u(void 0)})});return function(e){return o.apply(this,arguments)}}();return l(function(){var e=T.compData;x.value=void 0!==e.id,S.value.protocol=e.Protocol?e.Protocol.toLowerCase():"tcp",S.value.s_ports=e.S_Port?e.S_Port:"",S.value.d_ports=e.T_Port?e.T_Port:"",S.value.d_address=e.T_Address?e.T_Address:"",S.value.id=e.id?e.id:""}),n({onConfirm:E}),function(e,t){var r=b,o=p,n=y,a=f,l=g,_=m;return u(),c(_,{ref_key:"editIpRulesRef",ref:D,rules:A,model:s(S),class:"p-[2rem] addfrom"},{default:i(function(){return[d(o,{label:"协议"},{default:i(function(){return[d(r,{modelValue:s(S).protocol,"onUpdate:modelValue":t[0]||(t[0]=function(e){return s(S).protocol=e}),options:O,class:"!w-[24rem]"},null,8,["modelValue"])]}),_:1}),d(o,{label:"源端口",prop:"s_ports"},{default:i(function(){return[d(n,{modelValue:s(S).s_ports,"onUpdate:modelValue":t[1]||(t[1]=function(e){return s(S).s_ports=e}),type:"number",min:"1",max:"65535",width:"24rem",placeholder:"请输入源端口"},null,8,["modelValue"])]}),_:1}),d(o,{label:"目标IP"},{default:i(function(){return[d(n,{modelValue:s(S).d_address,"onUpdate:modelValue":t[2]||(t[2]=function(e){return s(S).d_address=e}),width:"24rem",placeholder:"请输入目标IP地址",clearable:""},null,8,["modelValue"])]}),_:1}),d(o,{label:"目标端口",prop:"d_ports"},{default:i(function(){return[d(n,{modelValue:s(S).d_ports,"onUpdate:modelValue":t[3]||(t[3]=function(e){return s(S).d_ports=e}),width:"24rem",placeholder:"请输入目标端口",clearable:""},null,8,["modelValue"])]}),_:1}),d(o,{label:"备注"},{default:i(function(){return[d(a,{modelValue:s(S).brief,"onUpdate:modelValue":t[4]||(t[4]=function(e){return s(S).brief=e}),class:"!w-[24rem] special-input",placeholder:"可为空",clearable:""},null,8,["modelValue"])]}),_:1}),d(l,{options:V,listStyle:"disc",class:"pl-[3.6rem] pt-[2rem]"})]}),_:1},8,["model"])}}}))}}})}();