OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d4ed2
)
add default port
author
HAOYUatHZ
<haoyu@protonmail.com>
Thu, 27 Jun 2019 07:20:24 +0000
(15:20 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Thu, 27 Jun 2019 07:20:24 +0000
(15:20 +0800)
federation/api/server.go
patch
|
blob
|
history
diff --git
a/federation/api/server.go
b/federation/api/server.go
index
330b1de
..
fb45eba
100644
(file)
--- a/
federation/api/server.go
+++ b/
federation/api/server.go
@@
-43,6
+43,9
@@
func (server *Server) setupRouter() {
}
func (s *Server) Run() {
+ if s.cfg.API.ListeningPort == 0 {
+ s.cfg.API.ListeningPort = 3000
+ }
s.engine.Run(fmt.Sprintf(":%d", s.cfg.API.ListeningPort))
}