Skip to content

Commit

Permalink
Up: Connect (http)
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerf committed Dec 3, 2024
1 parent bbdae31 commit f34cda7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/screens/Settings/Connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ const Connect = ({ navigation }) => {
const salt = Math.random().toString(36).substring(2, 15)
const query = `u=${encodeURI(username)}&t=${md5(password + salt)}&s=${salt}&v=1.16.1&c=castafiore&f=json`

if (uri.startsWith('http://')) {
setError('Only https is allowed')
return
}
getApi({ url: uri, query }, 'ping.view')
.then((json) => {
if (json?.status == 'ok') {
Expand Down

0 comments on commit f34cda7

Please sign in to comment.