Remove --cors flag (#4525)
The feature is long gone. Thanks: Angelo Recca <a.recca@bitsong.io> for reporting this.
This commit is contained in:
parent
d1f17ff903
commit
8cc708b67c
|
@ -0,0 +1 @@
|
|||
#4525 Remove --cors flag, the feature is long gone.
|
|
@ -51,7 +51,6 @@ const (
|
|||
FlagGenerateOnly = flags.FlagGenerateOnly
|
||||
FlagIndentResponse = flags.FlagIndentResponse
|
||||
FlagListenAddr = flags.FlagListenAddr
|
||||
FlagCORS = flags.FlagCORS
|
||||
FlagMaxOpenConnections = flags.FlagMaxOpenConnections
|
||||
FlagRPCReadTimeout = flags.FlagRPCReadTimeout
|
||||
FlagRPCWriteTimeout = flags.FlagRPCWriteTimeout
|
||||
|
|
|
@ -50,7 +50,6 @@ const (
|
|||
FlagGenerateOnly = "generate-only"
|
||||
FlagIndentResponse = "indent"
|
||||
FlagListenAddr = "laddr"
|
||||
FlagCORS = "cors"
|
||||
FlagMaxOpenConnections = "max-open"
|
||||
FlagRPCReadTimeout = "read-timeout"
|
||||
FlagRPCWriteTimeout = "write-timeout"
|
||||
|
@ -122,7 +121,6 @@ func PostCommands(cmds ...*cobra.Command) []*cobra.Command {
|
|||
func RegisterRestServerFlags(cmd *cobra.Command) *cobra.Command {
|
||||
cmd = GetCommands(cmd)[0]
|
||||
cmd.Flags().String(FlagListenAddr, "tcp://localhost:1317", "The address for the server to listen on")
|
||||
cmd.Flags().String(FlagCORS, "", "Set the domains that can make CORS requests (* for all)")
|
||||
cmd.Flags().Uint(FlagMaxOpenConnections, 1000, "The number of maximum open connections")
|
||||
cmd.Flags().Uint(FlagRPCReadTimeout, 10, "The RPC read timeout (in seconds)")
|
||||
cmd.Flags().Uint(FlagRPCWriteTimeout, 10, "The RPC write timeout (in seconds)")
|
||||
|
|
Loading…
Reference in New Issue