security improvement and bugs fixing; modify makefile

This commit is contained in:
LC mac
2026-02-18 03:24:05 +08:00
parent 127b479f4f
commit 4da39b7b89
21 changed files with 52111 additions and 930 deletions

View File

@@ -76,7 +76,7 @@ function App() {
const [blenderResetKey, setBlenderResetKey] = useState(0);
// Network blocking state
const [isNetworkBlocked, setIsNetworkBlocked] = useState(false);
const [isNetworkBlocked, setIsNetworkBlocked] = useState(true);
// Entropy generation states
const [entropySource, setEntropySource] = useState<'camera' | 'dice' | 'audio' | 'randomorg' | null>(null);
@@ -120,6 +120,16 @@ function App() {
return () => clearInterval(interval);
}, []);
useEffect(() => {
blockAllNetworks();
// setIsNetworkBlocked(true); // already set by default state
}, []);
useEffect(() => {
blockAllNetworks();
// setIsNetworkBlocked(true); // already set by default state
}, []);
// Cleanup session key on component unmount