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
|
FlagGenerateOnly = flags.FlagGenerateOnly
|
||||||
FlagIndentResponse = flags.FlagIndentResponse
|
FlagIndentResponse = flags.FlagIndentResponse
|
||||||
FlagListenAddr = flags.FlagListenAddr
|
FlagListenAddr = flags.FlagListenAddr
|
||||||
FlagCORS = flags.FlagCORS
|
|
||||||
FlagMaxOpenConnections = flags.FlagMaxOpenConnections
|
FlagMaxOpenConnections = flags.FlagMaxOpenConnections
|
||||||
FlagRPCReadTimeout = flags.FlagRPCReadTimeout
|
FlagRPCReadTimeout = flags.FlagRPCReadTimeout
|
||||||
FlagRPCWriteTimeout = flags.FlagRPCWriteTimeout
|
FlagRPCWriteTimeout = flags.FlagRPCWriteTimeout
|
||||||
|
|
|
@ -50,7 +50,6 @@ const (
|
||||||
FlagGenerateOnly = "generate-only"
|
FlagGenerateOnly = "generate-only"
|
||||||
FlagIndentResponse = "indent"
|
FlagIndentResponse = "indent"
|
||||||
FlagListenAddr = "laddr"
|
FlagListenAddr = "laddr"
|
||||||
FlagCORS = "cors"
|
|
||||||
FlagMaxOpenConnections = "max-open"
|
FlagMaxOpenConnections = "max-open"
|
||||||
FlagRPCReadTimeout = "read-timeout"
|
FlagRPCReadTimeout = "read-timeout"
|
||||||
FlagRPCWriteTimeout = "write-timeout"
|
FlagRPCWriteTimeout = "write-timeout"
|
||||||
|
@ -122,7 +121,6 @@ func PostCommands(cmds ...*cobra.Command) []*cobra.Command {
|
||||||
func RegisterRestServerFlags(cmd *cobra.Command) *cobra.Command {
|
func RegisterRestServerFlags(cmd *cobra.Command) *cobra.Command {
|
||||||
cmd = GetCommands(cmd)[0]
|
cmd = GetCommands(cmd)[0]
|
||||||
cmd.Flags().String(FlagListenAddr, "tcp://localhost:1317", "The address for the server to listen on")
|
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(FlagMaxOpenConnections, 1000, "The number of maximum open connections")
|
||||||
cmd.Flags().Uint(FlagRPCReadTimeout, 10, "The RPC read timeout (in seconds)")
|
cmd.Flags().Uint(FlagRPCReadTimeout, 10, "The RPC read timeout (in seconds)")
|
||||||
cmd.Flags().Uint(FlagRPCWriteTimeout, 10, "The RPC write timeout (in seconds)")
|
cmd.Flags().Uint(FlagRPCWriteTimeout, 10, "The RPC write timeout (in seconds)")
|
||||||
|
|
Loading…
Reference in New Issue