Skip to content

Commit

Permalink
Merge pull request #91 from lZiMUl/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
lZiMUl authored Sep 26, 2024
2 parents ddfcaa5 + 50a6eca commit 37668d8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ contactLink = "https://discord.com/"
# Host
host = "0.0.0.0"
# Port
port = 22
port = 80
# Website session timeout (unit: minutes)
sessionTimeout = 10
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ contactLink = "https://qm.qq.com/q/123456789"
# 主机
host = "0.0.0.0"
# 端口
port = 22
port = 80
# 网站会话超时时间 (单位:分钟)
sessionTimeout = 10
Expand Down
2 changes: 1 addition & 1 deletion config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ contactLink = "https://qm.qq.com/q/123456789"
# Host
host = "0.0.0.0"
# Port
port = 22
port = 80
# Website session timeout (unit: minutes)
sessionTimeout = 10

Expand Down
6 changes: 3 additions & 3 deletions docs/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</tbody>
</table>
<br />
<p align="center">
<div align="center">
<a href="https://github.com/lZiMUl/mcwl4w/">
<img src="/assets/image/icon/logo.png" alt="Logo" width="120" height="120">
</a>
Expand All @@ -34,7 +34,7 @@ <h3 align="center">mcwl4w</h3>
·
<a href="https://github.com/lZiMUl/mcwl4w/issues">Propose New Features</a>
</p>
</p>
</div>
<p><a href="https://space.bilibili.com/291883246" target="_blank" class="external"><img src="https://img.shields.io/badge/mcwl4w%20Developer%20Bilibili-red?logo=bilibili" alt="BiliBili"></a>
<a href="https://github.com/lZiMUl/mcwl4w/graphs/contributors" target="_blank" class="external"><img src="https://img.shields.io/github/contributors/lZiMUl/mcwl4w.svg?style=flat-square" alt="Contributors"></a>
<a href="https://github.com/lZiMUl/mcwl4w/issues" target="_blank" class="external"><img src="https://img.shields.io/github/issues/lZiMUl/mcwl4w?label=Issues&amp;logo=github" alt="Issues"></a>
Expand Down Expand Up @@ -107,7 +107,7 @@ <h3 align="center">mcwl4w</h3>
# Host
host = "0.0.0.0"
# Port
port = 22
port = 80
# Website session timeout (unit: minutes)
sessionTimeout = 10

Expand Down
6 changes: 3 additions & 3 deletions docs/client/media/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mcwl4w 是一个旨在通过在线网站为Minecraft服务器提供便捷白名

<br />

<p align="center">
<div align="center">
<a href="https://github.com/lZiMUl/mcwl4w/">
<img src="/assets/image/icon/logo.png" alt="Logo" width="120" height="120">
</a>
Expand All @@ -25,7 +25,7 @@ mcwl4w 是一个旨在通过在线网站为Minecraft服务器提供便捷白名
·
<a href="https://github.com/lZiMUl/mcwl4w/issues">提出新特性</a>
</p>
</p>
</div>

[![BiliBili][bilibili-shield]][bilibili-url]
[![Contributors][contributors-shield]][contributors-url]
Expand Down Expand Up @@ -117,7 +117,7 @@ contactLink = "https://qm.qq.com/q/123456789"
# 主机
host = "0.0.0.0"
# 端口
port = 22
port = 80
# 网站会话超时时间 (单位:分钟)
sessionTimeout = 10
Expand Down
6 changes: 3 additions & 3 deletions docs/server/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</tbody>
</table>
<br />
<p align="center">
<div align="center">
<a href="https://github.com/lZiMUl/mcwl4w/">
<img src="/assets/image/icon/logo.png" alt="Logo" width="120" height="120">
</a>
Expand All @@ -34,7 +34,7 @@ <h3 align="center">mcwl4w</h3>
·
<a href="https://github.com/lZiMUl/mcwl4w/issues">Propose New Features</a>
</p>
</p>
</div>
<p><a href="https://space.bilibili.com/291883246" target="_blank" class="external"><img src="https://img.shields.io/badge/mcwl4w%20Developer%20Bilibili-red?logo=bilibili" alt="BiliBili"></a>
<a href="https://github.com/lZiMUl/mcwl4w/graphs/contributors" target="_blank" class="external"><img src="https://img.shields.io/github/contributors/lZiMUl/mcwl4w.svg?style=flat-square" alt="Contributors"></a>
<a href="https://github.com/lZiMUl/mcwl4w/issues" target="_blank" class="external"><img src="https://img.shields.io/github/issues/lZiMUl/mcwl4w?label=Issues&amp;logo=github" alt="Issues"></a>
Expand Down Expand Up @@ -107,7 +107,7 @@ <h3 align="center">mcwl4w</h3>
# Host
host = "0.0.0.0"
# Port
port = 22
port = 80
# Website session timeout (unit: minutes)
sessionTimeout = 10

Expand Down
6 changes: 3 additions & 3 deletions docs/server/media/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mcwl4w 是一个旨在通过在线网站为Minecraft服务器提供便捷白名

<br />

<p align="center">
<div align="center">
<a href="https://github.com/lZiMUl/mcwl4w/">
<img src="/assets/image/icon/logo.png" alt="Logo" width="120" height="120">
</a>
Expand All @@ -25,7 +25,7 @@ mcwl4w 是一个旨在通过在线网站为Minecraft服务器提供便捷白名
·
<a href="https://github.com/lZiMUl/mcwl4w/issues">提出新特性</a>
</p>
</p>
</div>

[![BiliBili][bilibili-shield]][bilibili-url]
[![Contributors][contributors-shield]][contributors-url]
Expand Down Expand Up @@ -117,7 +117,7 @@ contactLink = "https://qm.qq.com/q/123456789"
# 主机
host = "0.0.0.0"
# 端口
port = 22
port = 80
# 网站会话超时时间 (单位:分钟)
sessionTimeout = 10
Expand Down
2 changes: 1 addition & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const serviceType: ServiceType = 'webService';
// Get host and port
const [host, port]: Array<string | number> = [
program.opts().host ?? getConfig(serviceType, 'host') ?? '0.0.0.0',
program.opts().port ?? getConfig(serviceType, 'port') ?? '22'
program.opts().port ?? getConfig(serviceType, 'port') ?? '80'
];

logger.info(
Expand Down

0 comments on commit 37668d8

Please sign in to comment.