Giter Club home page Giter Club logo

Comments (7)

yu1745 avatar yu1745 commented on July 20, 2024

支持

回源host默认就好

假如你的mc服务器ip是1.1.1.1,mc服务器端口是25565,server端绑定的端口是80,接入cdn的域名是mc.xxx.com,从cdn那边拿到的加速域名是mc.xxx.com.xxxcdn.com,游戏客户端里的服务器ip是localhost:2022,不开启https,那么编译脚本里的配置就是,
$env:addr="mc.xxx.com.xxxcdn.com:80"
$env:https="false"
$env:listen=":2022"
$env:real="mc.xxx.com"
源站设置1.1.1.1:80,client端不需要参数直接执行,server端执行 server -a :80 -d localhost:25565

from websocket_tunnel.

lonely-nightmare avatar lonely-nightmare commented on July 20, 2024

谢谢大佬

from websocket_tunnel.

lonely-nightmare avatar lonely-nightmare commented on July 20, 2024

大佬,client 需要玩家在进入服务器的时候一直打开嘛

from websocket_tunnel.

yu1745 avatar yu1745 commented on July 20, 2024

需要

from websocket_tunnel.

lonely-nightmare avatar lonely-nightmare commented on July 20, 2024

可以使其静默启动嘛,不然玩家容易误点关闭,或者来说一直是个黑屏cmd不美观qwq?

from websocket_tunnel.

yu1745 avatar yu1745 commented on July 20, 2024

在编译脚本编译client的那行后面添加这个 -ldflags="-H windowsgui" 就没有黑框了,但是运行一个来路不明的程序对于玩家来说是很危险的,如果这个程序不是一个显眼的黑框,而是启动了就自动消失不见了,那就更加危险了,完全有理由怀疑这是病毒。所以我认为有这个黑框比没有好,有了这个黑框可以让玩家认为我可以控制这个程序的行为,我想开就开。想关就关,可以让玩家更容易接受这个程序。

from websocket_tunnel.

lonely-nightmare avatar lonely-nightmare commented on July 20, 2024

嗷,好知道了

from websocket_tunnel.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.