Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0cd699b2d3 | |||
| a2a0d85e5d |
@@ -68,6 +68,7 @@ ENV SSHWIFTY_HOSTNAME= \
|
|||||||
SSHWIFTY_ONLYALLOWPRESETREMOTES=
|
SSHWIFTY_ONLYALLOWPRESETREMOTES=
|
||||||
COPY --from=builder /sshwifty /
|
COPY --from=builder /sshwifty /
|
||||||
COPY . /sshwifty-src
|
COPY . /sshwifty-src
|
||||||
|
RUN apk add --no-cache tzdata
|
||||||
RUN set -ex && \
|
RUN set -ex && \
|
||||||
adduser -D sshwifty && \
|
adduser -D sshwifty && \
|
||||||
chmod +x /sshwifty && \
|
chmod +x /sshwifty && \
|
||||||
|
|||||||
18
ui/app.js
18
ui/app.js
@@ -286,16 +286,16 @@ function startApp(rootEl) {
|
|||||||
clientTime = new Date().getTime(),
|
clientTime = new Date().getTime(),
|
||||||
timeDiff = Math.abs(serverTime - clientTime);
|
timeDiff = Math.abs(serverTime - clientTime);
|
||||||
|
|
||||||
if (timeDiff > maxTimeDiff) {
|
// if (timeDiff > maxTimeDiff) {
|
||||||
this.loadErr =
|
// this.loadErr =
|
||||||
"The time difference between this client " +
|
// "The time difference between this client " +
|
||||||
"and the backend server is beyond operational limit.\r\n\r\n" +
|
// "and the backend server is beyond operational limit.\r\n\r\n" +
|
||||||
"Please try reload the page, and if the problem persisted, " +
|
// "Please try reload the page, and if the problem persisted, " +
|
||||||
"consider to adjust your local time so both the client and " +
|
// "consider to adjust your local time so both the client and " +
|
||||||
"the server are running at same date time";
|
// "the server are running at same date time";
|
||||||
|
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
let self = this;
|
let self = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user