summaryrefslogtreecommitdiff
path: root/localwebsite/classes
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-02-17 02:43:49 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-02-17 02:43:49 +0300
commitc4ace358182d1f58724336714490e3caac6b60df (patch)
treea519d29e87e26d60c67e8646ebe133e5438d3986 /localwebsite/classes
parent17b447646752cb141c30684046906961e8d0af9f (diff)
parentd3a295872c49defb55fc8e4e43e55550991e0927 (diff)
Merge branch 'master' of ch1p.io:homekit
Diffstat (limited to 'localwebsite/classes')
-rw-r--r--localwebsite/classes/MyOpenWrtUtils.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/localwebsite/classes/MyOpenWrtUtils.php b/localwebsite/classes/MyOpenWrtUtils.php
index 6bdfec2..c140fa1 100644
--- a/localwebsite/classes/MyOpenWrtUtils.php
+++ b/localwebsite/classes/MyOpenWrtUtils.php
@@ -61,6 +61,14 @@ class MyOpenWrtUtils {
return $list;
}
+ public static function setUpstream(string $ip) {
+ return self::run(['homekit-set-default-upstream', $ip]);
+ }
+
+ public static function getDefaultRoute() {
+ return self::run(['get-default-route']);
+ }
+
//
// http functions
@@ -128,4 +136,4 @@ class MyOpenWrtUtils {
];
}
-} \ No newline at end of file
+}