@@ -51,14 +51,14 @@ export class GunRegistry {
5151 namespace : options . namespace || "dig-nat-tools" ,
5252 forceOverride : options . forceOverride ?? true ,
5353 overrideDelayMs : options . overrideDelayMs ?? 150 ,
54- webrtc : options . webrtc || {
55- iceServers : [
56- { urls : 'stun:stun.l.google.com:19302' } ,
57- { urls : 'stun:stun1.l.google.com:19302' } ,
58- { urls : 'stun:stun2.l.google.com:19302' }
59- ]
60- } ,
61- localStorage : options . localStorage ?? true ,
54+ // webrtc: options.webrtc || {
55+ // iceServers: [
56+ // { urls: 'stun:stun.l.google.com:19302' },
57+ // { urls: 'stun:stun1.l.google.com:19302' },
58+ // { urls: 'stun:stun2.l.google.com:19302' }
59+ // ]
60+ // },
61+ // localStorage: options.localStorage ?? true,
6262 } ;
6363
6464 this . initializeGun ( ) ;
@@ -68,8 +68,10 @@ export class GunRegistry {
6868 try {
6969 this . gun = Gun ( {
7070 peers : this . options . peers ,
71- rtc : this . options . webrtc , // Enable WebRTC with ICE servers
72- localStorage : this . options . localStorage // Enable local storage for offline capabilities
71+ file : undefined , // Disable local file storage (must be string or undefined)
72+ localStorage : false , // Use option or default to false
73+ radisk : false , // Disable radisk storage
74+ axe : false ,
7375 } ) ;
7476 this . isGunAvailable = true ;
7577 console . log ( "Gun.js registry initialized with WebRTC and mesh networking" ) ;
0 commit comments