|
|
@ -83,63 +83,63 @@ var handler = map[string]localAPIHandler{
|
|
|
|
// without a trailing slash:
|
|
|
|
// without a trailing slash:
|
|
|
|
"bugreport": (*Handler).serveBugReport,
|
|
|
|
"bugreport": (*Handler).serveBugReport,
|
|
|
|
"check-ip-forwarding": (*Handler).serveCheckIPForwarding,
|
|
|
|
"check-ip-forwarding": (*Handler).serveCheckIPForwarding,
|
|
|
|
"check-udp-gro-forwarding": (*Handler).serveCheckUDPGROForwarding,
|
|
|
|
|
|
|
|
"check-prefs": (*Handler).serveCheckPrefs,
|
|
|
|
"check-prefs": (*Handler).serveCheckPrefs,
|
|
|
|
|
|
|
|
"check-udp-gro-forwarding": (*Handler).serveCheckUDPGROForwarding,
|
|
|
|
"component-debug-logging": (*Handler).serveComponentDebugLogging,
|
|
|
|
"component-debug-logging": (*Handler).serveComponentDebugLogging,
|
|
|
|
"debug": (*Handler).serveDebug,
|
|
|
|
"debug": (*Handler).serveDebug,
|
|
|
|
|
|
|
|
"debug-capture": (*Handler).serveDebugCapture,
|
|
|
|
"debug-derp-region": (*Handler).serveDebugDERPRegion,
|
|
|
|
"debug-derp-region": (*Handler).serveDebugDERPRegion,
|
|
|
|
"debug-dial-types": (*Handler).serveDebugDialTypes,
|
|
|
|
"debug-dial-types": (*Handler).serveDebugDialTypes,
|
|
|
|
|
|
|
|
"debug-log": (*Handler).serveDebugLog,
|
|
|
|
"debug-packet-filter-matches": (*Handler).serveDebugPacketFilterMatches,
|
|
|
|
"debug-packet-filter-matches": (*Handler).serveDebugPacketFilterMatches,
|
|
|
|
"debug-packet-filter-rules": (*Handler).serveDebugPacketFilterRules,
|
|
|
|
"debug-packet-filter-rules": (*Handler).serveDebugPacketFilterRules,
|
|
|
|
"debug-portmap": (*Handler).serveDebugPortmap,
|
|
|
|
|
|
|
|
"debug-peer-endpoint-changes": (*Handler).serveDebugPeerEndpointChanges,
|
|
|
|
"debug-peer-endpoint-changes": (*Handler).serveDebugPeerEndpointChanges,
|
|
|
|
"debug-capture": (*Handler).serveDebugCapture,
|
|
|
|
"debug-portmap": (*Handler).serveDebugPortmap,
|
|
|
|
"debug-log": (*Handler).serveDebugLog,
|
|
|
|
|
|
|
|
"derpmap": (*Handler).serveDERPMap,
|
|
|
|
"derpmap": (*Handler).serveDERPMap,
|
|
|
|
"dev-set-state-store": (*Handler).serveDevSetStateStore,
|
|
|
|
"dev-set-state-store": (*Handler).serveDevSetStateStore,
|
|
|
|
"set-push-device-token": (*Handler).serveSetPushDeviceToken,
|
|
|
|
|
|
|
|
"handle-push-message": (*Handler).serveHandlePushMessage,
|
|
|
|
|
|
|
|
"dial": (*Handler).serveDial,
|
|
|
|
"dial": (*Handler).serveDial,
|
|
|
|
|
|
|
|
"drive/fileserver-address": (*Handler).serveDriveServerAddr,
|
|
|
|
|
|
|
|
"drive/shares": (*Handler).serveShares,
|
|
|
|
"file-targets": (*Handler).serveFileTargets,
|
|
|
|
"file-targets": (*Handler).serveFileTargets,
|
|
|
|
"goroutines": (*Handler).serveGoroutines,
|
|
|
|
"goroutines": (*Handler).serveGoroutines,
|
|
|
|
|
|
|
|
"handle-push-message": (*Handler).serveHandlePushMessage,
|
|
|
|
"id-token": (*Handler).serveIDToken,
|
|
|
|
"id-token": (*Handler).serveIDToken,
|
|
|
|
"login-interactive": (*Handler).serveLoginInteractive,
|
|
|
|
"login-interactive": (*Handler).serveLoginInteractive,
|
|
|
|
"logout": (*Handler).serveLogout,
|
|
|
|
"logout": (*Handler).serveLogout,
|
|
|
|
"logtap": (*Handler).serveLogTap,
|
|
|
|
"logtap": (*Handler).serveLogTap,
|
|
|
|
"metrics": (*Handler).serveMetrics,
|
|
|
|
"metrics": (*Handler).serveMetrics,
|
|
|
|
"ping": (*Handler).servePing,
|
|
|
|
"ping": (*Handler).servePing,
|
|
|
|
"prefs": (*Handler).servePrefs,
|
|
|
|
|
|
|
|
"pprof": (*Handler).servePprof,
|
|
|
|
"pprof": (*Handler).servePprof,
|
|
|
|
|
|
|
|
"prefs": (*Handler).servePrefs,
|
|
|
|
|
|
|
|
"query-feature": (*Handler).serveQueryFeature,
|
|
|
|
"reload-config": (*Handler).reloadConfig,
|
|
|
|
"reload-config": (*Handler).reloadConfig,
|
|
|
|
"reset-auth": (*Handler).serveResetAuth,
|
|
|
|
"reset-auth": (*Handler).serveResetAuth,
|
|
|
|
"serve-config": (*Handler).serveServeConfig,
|
|
|
|
"serve-config": (*Handler).serveServeConfig,
|
|
|
|
"set-dns": (*Handler).serveSetDNS,
|
|
|
|
"set-dns": (*Handler).serveSetDNS,
|
|
|
|
"set-expiry-sooner": (*Handler).serveSetExpirySooner,
|
|
|
|
"set-expiry-sooner": (*Handler).serveSetExpirySooner,
|
|
|
|
"set-gui-visible": (*Handler).serveSetGUIVisible,
|
|
|
|
"set-gui-visible": (*Handler).serveSetGUIVisible,
|
|
|
|
"drive/fileserver-address": (*Handler).serveDriveServerAddr,
|
|
|
|
"set-push-device-token": (*Handler).serveSetPushDeviceToken,
|
|
|
|
"drive/shares": (*Handler).serveShares,
|
|
|
|
|
|
|
|
"start": (*Handler).serveStart,
|
|
|
|
"start": (*Handler).serveStart,
|
|
|
|
"status": (*Handler).serveStatus,
|
|
|
|
"status": (*Handler).serveStatus,
|
|
|
|
|
|
|
|
"tka/affected-sigs": (*Handler).serveTKAAffectedSigs,
|
|
|
|
|
|
|
|
"tka/cosign-recovery-aum": (*Handler).serveTKACosignRecoveryAUM,
|
|
|
|
|
|
|
|
"tka/disable": (*Handler).serveTKADisable,
|
|
|
|
|
|
|
|
"tka/force-local-disable": (*Handler).serveTKALocalDisable,
|
|
|
|
|
|
|
|
"tka/generate-recovery-aum": (*Handler).serveTKAGenerateRecoveryAUM,
|
|
|
|
"tka/init": (*Handler).serveTKAInit,
|
|
|
|
"tka/init": (*Handler).serveTKAInit,
|
|
|
|
"tka/log": (*Handler).serveTKALog,
|
|
|
|
"tka/log": (*Handler).serveTKALog,
|
|
|
|
"tka/modify": (*Handler).serveTKAModify,
|
|
|
|
"tka/modify": (*Handler).serveTKAModify,
|
|
|
|
"tka/sign": (*Handler).serveTKASign,
|
|
|
|
"tka/sign": (*Handler).serveTKASign,
|
|
|
|
"tka/status": (*Handler).serveTKAStatus,
|
|
|
|
"tka/status": (*Handler).serveTKAStatus,
|
|
|
|
"tka/disable": (*Handler).serveTKADisable,
|
|
|
|
|
|
|
|
"tka/force-local-disable": (*Handler).serveTKALocalDisable,
|
|
|
|
|
|
|
|
"tka/affected-sigs": (*Handler).serveTKAAffectedSigs,
|
|
|
|
|
|
|
|
"tka/wrap-preauth-key": (*Handler).serveTKAWrapPreauthKey,
|
|
|
|
|
|
|
|
"tka/verify-deeplink": (*Handler).serveTKAVerifySigningDeeplink,
|
|
|
|
|
|
|
|
"tka/generate-recovery-aum": (*Handler).serveTKAGenerateRecoveryAUM,
|
|
|
|
|
|
|
|
"tka/cosign-recovery-aum": (*Handler).serveTKACosignRecoveryAUM,
|
|
|
|
|
|
|
|
"tka/submit-recovery-aum": (*Handler).serveTKASubmitRecoveryAUM,
|
|
|
|
"tka/submit-recovery-aum": (*Handler).serveTKASubmitRecoveryAUM,
|
|
|
|
"upload-client-metrics": (*Handler).serveUploadClientMetrics,
|
|
|
|
"tka/verify-deeplink": (*Handler).serveTKAVerifySigningDeeplink,
|
|
|
|
"watch-ipn-bus": (*Handler).serveWatchIPNBus,
|
|
|
|
"tka/wrap-preauth-key": (*Handler).serveTKAWrapPreauthKey,
|
|
|
|
"whois": (*Handler).serveWhoIs,
|
|
|
|
|
|
|
|
"query-feature": (*Handler).serveQueryFeature,
|
|
|
|
|
|
|
|
"update/check": (*Handler).serveUpdateCheck,
|
|
|
|
"update/check": (*Handler).serveUpdateCheck,
|
|
|
|
"update/install": (*Handler).serveUpdateInstall,
|
|
|
|
"update/install": (*Handler).serveUpdateInstall,
|
|
|
|
"update/progress": (*Handler).serveUpdateProgress,
|
|
|
|
"update/progress": (*Handler).serveUpdateProgress,
|
|
|
|
|
|
|
|
"upload-client-metrics": (*Handler).serveUploadClientMetrics,
|
|
|
|
|
|
|
|
"watch-ipn-bus": (*Handler).serveWatchIPNBus,
|
|
|
|
|
|
|
|
"whois": (*Handler).serveWhoIs,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
var (
|
|
|
|