I don’t know the GL.iNet default config all that well, but it shouldn’t matter as you should be able to connect over the LAN port to do the re-flash.