mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 03:26:51 +03:00
feat: add support for optional gRPC service name in outbound transport configuration
This commit is contained in:
@@ -214,7 +214,12 @@ _add_outbound_transport() {
|
|||||||
;;
|
;;
|
||||||
grpc)
|
grpc)
|
||||||
# TODO(ampetelin): Add handling of optional gRPC parameters; example links are needed.
|
# TODO(ampetelin): Add handling of optional gRPC parameters; example links are needed.
|
||||||
config=$(sing_box_cm_set_grpc_transport_for_outbound "$config" "$outbound_tag")
|
local grpc_service_name
|
||||||
|
grpc_service_name=$(url_get_query_param "$url" "serviceName")
|
||||||
|
|
||||||
|
config=$(
|
||||||
|
sing_box_cm_set_grpc_transport_for_outbound "$config" "$outbound_tag" "$grpc_service_name"
|
||||||
|
)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
log "Unknown transport '$transport' detected." "error"
|
log "Unknown transport '$transport' detected." "error"
|
||||||
|
|||||||
Reference in New Issue
Block a user