mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-26 12:32:31 +08:00
daemon: consolidate writable gway line
This commit is contained in:
@ -215,9 +215,10 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
|
|||||||
if rootRedirect != nil {
|
if rootRedirect != nil {
|
||||||
opts = append(opts, rootRedirect)
|
opts = append(opts, rootRedirect)
|
||||||
}
|
}
|
||||||
fmt.Printf("Gateway server listening on %s\n", gatewayMaddr)
|
|
||||||
if writable {
|
if writable {
|
||||||
fmt.Printf("Gateway server is writable\n")
|
fmt.Printf("Gateway (writable) server listening on %s\n", gatewayMaddr)
|
||||||
|
} else {
|
||||||
|
fmt.Printf("Gateway (readonly) server listening on %s\n", gatewayMaddr)
|
||||||
}
|
}
|
||||||
err := corehttp.ListenAndServe(node, gatewayMaddr.String(), opts...)
|
err := corehttp.ListenAndServe(node, gatewayMaddr.String(), opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user