Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
董杰
/
induction_shelf
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 05a6ba43
由
董杰
编写于
2021-08-18 16:08:01 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
自动打开网址替换为smf
1 个父辈
9cde76cd
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
smartshelf/app/induction_config.py
smartshelf/app/induction_config.py
查看文件 @
05a6ba4
...
@@ -105,7 +105,7 @@ def confirm_autostart():
...
@@ -105,7 +105,7 @@ def confirm_autostart():
result
=
re
.
findall
(
r"\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"
,
ip_config
[
'ip'
])
result
=
re
.
findall
(
r"\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"
,
ip_config
[
'ip'
])
if
result
:
if
result
:
ip
=
result
[
0
]
ip
=
result
[
0
]
server_add
=
"http://{}/
neotel
"
.
format
(
ip
)
server_add
=
"http://{}/
smf
"
.
format
(
ip
)
else
:
else
:
server_add
=
"127.0.0.1:5000"
server_add
=
"127.0.0.1:5000"
line1
=
"Comment = star chrome and enter the website for
\"
{}
\"
"
.
format
(
server_add
)
line1
=
"Comment = star chrome and enter the website for
\"
{}
\"
"
.
format
(
server_add
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论