mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-23 05:07:51 +01:00
webapi: Implement optional API key to secure the API against unauthenticated attackers.
This commit is contained in:
1
Exit.go
1
Exit.go
@@ -19,5 +19,6 @@ const (
|
||||
ExitPrivateKeyCreate = 7 // Cannot create a new private key.
|
||||
ExitBlockchainCorrupt = 8 // Blockchain is corrupt.
|
||||
ExitGraceful = 9 // Graceful shutdown.
|
||||
ExitParamApiKeyInvalid = 10 // API key parameter is invalid.
|
||||
STATUS_CONTROL_C_EXIT = 0xC000013A // The application terminated as a result of a CTRL+C. This is a Windows NTSTATUS value.
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user