|
10 | 10 | @Getter |
11 | 11 | @Accessors(fluent = true) |
12 | 12 | public class DaogeLabConfig extends OkaeriConfig { |
13 | | - @Comment("The address for the DgLab-App to connect. Default: 127.0.0.1") |
14 | | - @Comment("In most cases, this is same with the address you use to connect to the MC server") |
| 13 | + @Comment("The address for the DgLab app to connect In most cases, this") |
| 14 | + @Comment("is same with the address you use to connect to the MC server") |
15 | 15 | private String address = "127.0.0.1"; |
16 | 16 |
|
17 | | - @Comment("The port for the DgLab ws server port number. Default: 8080") |
| 17 | + @Comment("The port for the DgLab app to connect. In most cases, this is same") |
| 18 | + @Comment("with the port that websocket server use, unless you are using frp,") |
| 19 | + @Comment("causing the app to connect to a different port than the one open to") |
| 20 | + @Comment("the websocket server") |
| 21 | + @CustomKey("public-port") |
| 22 | + private int publicPort = 8080; |
| 23 | + |
| 24 | + @Comment("The port that will open to the DgLab websocket server") |
18 | 25 | private int port = 8080; |
19 | 26 |
|
20 | 27 | @CustomKey("use-https") |
21 | | - @Comment("If true, connect to WebSocket server using HTTPS protocol. Default: false") |
22 | | - @Comment("If you connect from the Internet, you may need to turn on this option") |
23 | | - @Comment("Note that if you have this enabled, the address must be a domain name instead of an IP address") |
| 28 | + @Comment("If true, connect to WebSocket server using HTTPS protocol. If you connect") |
| 29 | + @Comment("from the Internet, you may need to turn on this option. Note that if you") |
| 30 | + @Comment("have this enabled, the address must be a domain name instead of an IP address") |
24 | 31 | private boolean useHttps = false; |
25 | 32 |
|
26 | | - @Comment("Mode determines how the current will change. Default: default_mode") |
| 33 | + @Comment("Mode determines how the current will change") |
27 | 34 | private String mode = DefaultMode.NAME; |
28 | 35 | } |
0 commit comments