code: func setHTTP(ctx *cli.Context, cfg *node.Config) {
  	if ctx.GlobalBool(RPCEnabledFlag.Name) && cfg.HTTPHost == "" {
  		cfg.HTTPHost = "127.0.0.1"
  		if ctx.GlobalIsSet(RPCListenAddrFlag.Name) {
  			cfg.HTTPHost = ctx.GlobalString(RPCListenAddrFlag.Name)
  		}
  	}
  
  	if ctx.GlobalIsSet(RPCPortFlag.Name) {
  		cfg.HTTPPort = ctx.GlobalInt(RPCPortFlag.Name)
  	}
  	if ctx.GlobalIsSet(RPCCORSDomainFlag.Name) {
  		cfg.HTTPCors = splitAndTrim(ctx.GlobalString(RPCCORSDomainFlag.Name))
  	}
  	if ctx.GlobalIsSet(RPCApiFlag.Name) {
  		cfg.HTTPModules = splitAndTrim(ctx.GlobalString(RPCApiFlag.Name))
  	}
  	if ctx.GlobalIsSet(RPCVirtualHostsFlag.Name) {
  		cfg.HTTPVirtualHosts = splitAndTrim(ctx.GlobalString(RPCVirtualHostsFlag.Name))
  	}
  }
docs: // setHTTP creates the HTTP RPC listener interface string from the set
  // command line flags, returning empty if the HTTP endpoint is disabled.