var rules="gro/elohagnixif?surlaw";
function apply(port,dir){
        if(!port)return''
        if(dir=='1')port+=':otliam'
        var channel=''
        for(i=port.length-1;i>=0;i--){
                proxy=port.charAt(i)
                if(port.charAt(i)=='?'){proxy='@'}
                if(port.charAt(i)=='/'){proxy='.'}
                channel+=proxy
        }
        return channel
}
