Compare commits

...

2 Commits

Author SHA1 Message Date
Maxi Quoß 0f0a0ac98b define socket outside of func 2022-06-02 12:34:06 +02:00
Maxi Quoß 36cef610c3 add windows notice #20 2022-05-31 22:24:40 +02:00
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -38,6 +38,10 @@ The website will be available at [localhost:8000](http://localhost:8000). If you
Upsnap supports 3 different databases. Postgres, MySQL and SQLite. If you already have an existing database you want to use, delete the database container from the compose file. Always make sure to set the correct database type environment variable, e.g. DB_TYPE=mysql
### Windows
There is a partly working solution in the [issue here](https://github.com/seriousm4x/UpSnap/issues/20#issuecomment-1142593360). Windows has problems with docker networking mode host, which breaks network scan. Sending wol packages works though.
## 📝 Other infos
* The app container needs to run in host network mode to send the wakeonlan command on your local network. Therefore all other containers also need to run in host network mode. I don't like it but there is no way around.
+2 -1
View File
@@ -4,9 +4,10 @@ import {
const status = writable('');
const message = writable('');
let socket;
function initSocket() {
const socket = new WebSocket(`ws://${location.hostname}:${BACKEND_PORT}/wol/`);
socket = new WebSocket(`ws://${location.hostname}:${BACKEND_PORT}/wol/`);
// Connection opened
socket.addEventListener('open', function () {