diff --git a/package/secubox/luci-app-secubox-p2p/htdocs/luci-static/resources/view/secubox-p2p/overview.js b/package/secubox/luci-app-secubox-p2p/htdocs/luci-static/resources/view/secubox-p2p/overview.js index 155be43b..51e55dd2 100644 --- a/package/secubox/luci-app-secubox-p2p/htdocs/luci-static/resources/view/secubox-p2p/overview.js +++ b/package/secubox/luci-app-secubox-p2p/htdocs/luci-static/resources/view/secubox-p2p/overview.js @@ -246,7 +246,7 @@ return view.extend({ scanPeers: function() { var self = this; ui.showModal(_('Scanning...'), E('p', { 'class': 'spinning' }, _('Discovering peers...'))); - P2PAPI.discoverPeers().then(function(result) { + P2PAPI.discover().then(function(result) { ui.hideModal(); var count = (result && result.length) || 0; ui.addNotification(null, E('p', {}, 'Found ' + count + ' peer(s)'), 'info');