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:
SquidDev 2020-04-13 11:00:31 +01:00
parent 6a6a87489c
commit ef4b0a5632
3 changed files with 5 additions and 5 deletions

View File

@ -175,7 +175,7 @@ public static void load( File configFile )
"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 " +

View File

@ -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

View File

@ -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