MariaTheDinkus / cc-tweaked-fabric

CC: Tweaked ported for Fabric 1.14.x
Other
19 stars 8 forks source link

load http whitelist and blacklist from config file #24

Closed MightyHelper closed 3 years ago

MightyHelper commented 3 years ago

Useful information to include:

Probable cause :

I've spent a few minutes looking at the code and what I believe to be the issue is that this https://github.com/Zundrel/cc-tweaked-fabric/blob/4d00969ef0a6907e122789995ae36fa10070ccb3/src/main/java/dan200/computercraft/shared/util/Config.java#L162-L165 Enables the updating of the whitelist and blacklist, however (I think) the URLs are checked against the httpRules https://github.com/Zundrel/cc-tweaked-fabric/blob/4d00969ef0a6907e122789995ae36fa10070ccb3/src/main/java/dan200/computercraft/ComputerCraft.java#L89-L95 which are not re-created when the blacklist and whitelist arrays are updated.

I'm happy to help if you need more information.