mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-07 07:50:27 +00:00
Fix config name for enabling http API
It hasn't been http_enable for yonks - slightly worried I didn't notice this earlier. Also don't refer to ComputerCraft.cfg - the name has changed several times across versions, so let's leave it ambiguous.
This commit is contained in:
parent
6a6a87489c
commit
ef4b0a5632
@ -175,7 +175,7 @@ public final class Config
|
||||
"for more fine grained control than this)" );
|
||||
|
||||
httpWebsocketEnable = config.get( CATEGORY_HTTP, "websocket_enabled", ComputerCraft.http_websocket_enable );
|
||||
httpWebsocketEnable.setComment( "Enable use of http websockets. This requires the \"http_enable\" option to also be true." );
|
||||
httpWebsocketEnable.setComment( "Enable use of http websockets. This requires the \"http.enabled\" option to also be true." );
|
||||
|
||||
httpAllowedDomains = config.get( CATEGORY_HTTP, "allowed_domains", DEFAULT_HTTP_WHITELIST );
|
||||
httpAllowedDomains.setComment( "A list of wildcards for domains or IP ranges that can be accessed through the " +
|
||||
|
@ -13,8 +13,8 @@ if #tArgs < 2 then
|
||||
end
|
||||
|
||||
if not http then
|
||||
printError( "Pastebin requires http API" )
|
||||
printError( "Set http_enable to true in ComputerCraft.cfg" )
|
||||
printError( "Pastebin requires the http API" )
|
||||
printError( "Set http.enabled to true in CC: Tweaked's config" )
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -21,8 +21,8 @@ end
|
||||
local url = table.remove( tArgs, 1 )
|
||||
|
||||
if not http then
|
||||
printError( "wget requires http API" )
|
||||
printError( "Set http_enable to true in ComputerCraft.cfg" )
|
||||
printError( "wget requires the http API" )
|
||||
printError( "Set http.enabled to true in CC: Tweaked's config" )
|
||||
return
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user