Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
3427ae75
Unverified
Commit
3427ae75
authored
Aug 05, 2025
by
Liu Chao
Committed by
GitHub
Aug 05, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: resolve gRPC Gateway connection issue when server address is empty (#4968)
Signed-off-by:
ChaoLiu
<
chaoliu719@gmail.com
>
parent
506b477d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
v1.go
server/router/api/v1/v1.go
+5
-1
No files found.
server/router/api/v1/v1.go
View file @
3427ae75
...
...
@@ -67,7 +67,11 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Store
func
(
s
*
APIV1Service
)
RegisterGateway
(
ctx
context
.
Context
,
echoServer
*
echo
.
Echo
)
error
{
var
target
string
if
len
(
s
.
Profile
.
UNIXSock
)
==
0
{
target
=
fmt
.
Sprintf
(
"%s:%d"
,
s
.
Profile
.
Addr
,
s
.
Profile
.
Port
)
addr
:=
s
.
Profile
.
Addr
if
addr
==
""
{
addr
=
"localhost"
}
target
=
fmt
.
Sprintf
(
"%s:%d"
,
addr
,
s
.
Profile
.
Port
)
}
else
{
target
=
fmt
.
Sprintf
(
"unix:%s"
,
s
.
Profile
.
UNIXSock
)
}
...
...
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