Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
f65e37e0
Commit
f65e37e0
authored
Feb 09, 2020
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts
parent
cca4bb54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
src/inventory.ts
src/inventory.ts
+0
-3
update.sh
update.sh
+1
-1
No files found.
src/inventory.ts
View file @
f65e37e0
...
...
@@ -62,9 +62,6 @@ class InventoryBuilder {
const
leftbottom
=
local
.
id
>
remote
.
id
;
// true 条目位于左下,false 条目位于右上
const
cis
=
!
(
!
leftbottom
&&
inbound
&&
outbound
);
// true 无需翻转,false 需要翻转。
const
primary
=
leftbottom
?
outbound
:
inbound
;
// true 使用 peerAddress、port, false 使用peerAddress2、port2
if
(
local
.
name
===
'
hk-hkg-alql2
'
&&
remote
.
name
===
'
halozy
'
)
{
console
.
log
(
primary
);
}
const
[
_metric
,
protocol
,
_params
]
=
connstr
.
split
(
'
,
'
);
const
metric
=
parseInt
(
_metric
);
...
...
update.sh
View file @
f65e37e0
...
...
@@ -2,7 +2,7 @@
set
-e
echo
"现在会真正去部署了,请务必带 --limit 运行。"
echo
"现在开放测试的节点:south.mycard.moe,yuzurisa.mycard.moe,hk-hkg-alql2.mycard.moe,ayane.mycard.moe"
echo
"现在开放测试的节点:south.mycard.moe,yuzurisa.mycard.moe,hk-hkg-alql2.mycard.moe,ayane.mycard.moe
,hk-hkg-alql3.mycard.moe
"
read
-p
'确认无误后按回车继续'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment