diff --git a/app/Protocols/Clash.php b/app/Protocols/Clash.php index 6d50249..e88cbe3 100644 --- a/app/Protocols/Clash.php +++ b/app/Protocols/Clash.php @@ -148,7 +148,7 @@ class Clash implements ProtocolInterface $array['plugin'] = 'obfs'; $array['plugin-opts'] = [ 'mode' => 'http', - 'host' => data_get($protocol_settings, 'obfs.host'), + 'host' => data_get($protocol_settings, 'obfs_settings.host'), ]; } return $array; diff --git a/app/Protocols/ClashMeta.php b/app/Protocols/ClashMeta.php index 777a930..8d4d636 100644 --- a/app/Protocols/ClashMeta.php +++ b/app/Protocols/ClashMeta.php @@ -166,7 +166,7 @@ class ClashMeta implements ProtocolInterface $array['plugin'] = 'obfs'; $array['plugin-opts'] = [ 'mode' => 'http', - 'host' => data_get($protocol_settings, 'obfs.host'), + 'host' => data_get($protocol_settings, 'obfs_settings.host'), ]; } return $array; diff --git a/app/Protocols/Shadowrocket.php b/app/Protocols/Shadowrocket.php index fe63e05..9328b89 100644 --- a/app/Protocols/Shadowrocket.php +++ b/app/Protocols/Shadowrocket.php @@ -70,8 +70,8 @@ class Shadowrocket implements ProtocolInterface $uri = "ss://{$str}@{$addr}:{$server['port']}"; if ($protocol_settings['obfs'] == 'http') { - $obfs_host = data_get($protocol_settings, 'obfs_settings.obfs-host'); - $obfs_path = data_get($protocol_settings, 'obfs_settings.obfs-path'); + $obfs_host = data_get($protocol_settings, 'obfs_settings.host'); + $obfs_path = data_get($protocol_settings, 'obfs_settings.path'); $uri .= "?plugin=obfs-local;obfs=http;obfs-host={$obfs_host};obfs-uri={$obfs_path}"; } return $uri . "#{$name}\r\n"; diff --git a/app/Protocols/Stash.php b/app/Protocols/Stash.php index 12ba561..45a72ad 100644 --- a/app/Protocols/Stash.php +++ b/app/Protocols/Stash.php @@ -141,7 +141,7 @@ class Stash implements ProtocolInterface $array['plugin'] = 'obfs'; $array['plugin-opts'] = [ 'mode' => 'http', - 'host' => data_get($protocol_settings, 'obfs.host'), + 'host' => data_get($protocol_settings, 'obfs_settings.host'), ]; } return $array;