mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
25 lines
422 B
Go
25 lines
422 B
Go
package proxy
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewProxyCmd() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "dwn-proxy",
|
|
Short: "Starts the DWN proxy server for the local IPFS node",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
// Load config
|
|
c, err := LoadConfig(".")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
log.Printf("Config: %+v", c)
|
|
startServer()
|
|
return nil
|
|
},
|
|
}
|
|
}
|